; LLVM IR from zchrissirhcz/pixel :: src (px_negative_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.px_image_t = type { ptr, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.px_negative_image = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @px_negative_image(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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %20

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

19:                                               ; preds = %16
  br label %21

20:                                               ; preds = %16, %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 6, ptr noundef @__PRETTY_FUNCTION__.px_negative_image) #3
  unreachable

21:                                               ; preds = %19
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.px_image_t, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  br label %28

27:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 7, ptr noundef @__PRETTY_FUNCTION__.px_negative_image) #3
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.px_image_t, ptr %29, i32 0, i32 3
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  br label %35

34:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 8, ptr noundef @__PRETTY_FUNCTION__.px_negative_image) #3
  unreachable

35:                                               ; preds = %33
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.px_image_t, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !12
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.px_image_t, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !12
  %42 = icmp eq i32 %38, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  br label %45

44:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 9, ptr noundef @__PRETTY_FUNCTION__.px_negative_image) #3
  unreachable

45:                                               ; preds = %43
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.px_image_t, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.px_image_t, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = icmp eq i32 %48, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %45
  br label %55

54:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 10, ptr noundef @__PRETTY_FUNCTION__.px_negative_image) #3
  unreachable

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.px_image_t, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !12
  store i32 %58, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.px_image_t, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !13
  store i32 %61, ptr %6, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.px_image_t, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 8, !tbaa !9
  store i32 %64, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !14
  br label %65

65:                                               ; preds = %131, %55
  %66 = load i32, ptr %8, align 4, !tbaa !14
  %67 = load i32, ptr %6, align 4, !tbaa !14
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %134

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.px_image_t, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load i32, ptr %8, align 4, !tbaa !14
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.px_image_t, ptr %75, i32 0, i32 4
  %77 = load i32, ptr %76, align 4, !tbaa !16
  %78 = mul nsw i32 %74, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %73, i64 %79
  store ptr %80, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.px_image_t, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i32, ptr %8, align 4, !tbaa !14
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.px_image_t, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 4, !tbaa !16
  %88 = mul nsw i32 %84, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %83, i64 %89
  store ptr %90, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !14
  br label %91

91:                                               ; preds = %127, %70
  %92 = load i32, ptr %12, align 4, !tbaa !14
  %93 = load i32, ptr %5, align 4, !tbaa !14
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %130

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !14
  br label %97

97:                                               ; preds = %123, %96
  %98 = load i32, ptr %13, align 4, !tbaa !14
  %99 = load i32, ptr %7, align 4, !tbaa !14
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %126

102:                                              ; preds = %97
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !14
  %105 = load i32, ptr %7, align 4, !tbaa !14
  %106 = mul nsw i32 %104, %105
  %107 = load i32, ptr %13, align 4, !tbaa !14
  %108 = add nsw i32 %106, %107
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr %103, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !17
  %112 = zext i8 %111 to i32
  %113 = sub nsw i32 255, %112
  %114 = trunc i32 %113 to i8
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load i32, ptr %12, align 4, !tbaa !14
  %117 = load i32, ptr %7, align 4, !tbaa !14
  %118 = mul nsw i32 %116, %117
  %119 = load i32, ptr %13, align 4, !tbaa !14
  %120 = add nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %115, i64 %121
  store i8 %114, ptr %122, align 1, !tbaa !17
  br label %123

123:                                              ; preds = %102
  %124 = load i32, ptr %13, align 4, !tbaa !14
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %13, align 4, !tbaa !14
  br label %97, !llvm.loop !18

126:                                              ; preds = %101
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %12, align 4, !tbaa !14
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %12, align 4, !tbaa !14
  br label %91, !llvm.loop !20

130:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %8, align 4, !tbaa !14
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %8, align 4, !tbaa !14
  br label %65, !llvm.loop !21

134:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind }
attributes #4 = { 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 16}
!10 = !{!"px_image_t", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 12}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !11, i64 20}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !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"

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.px_negative_image = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @px_negative_image(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp ne ptr %0, null
  %4 = icmp ne ptr %1, null
  %or.cond = and i1 %3, %4
  br i1 %or.cond, label %6, label %5

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 6, ptr noundef nonnull @__PRETTY_FUNCTION__.px_negative_image) #2
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %11, label %10

10:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 7, ptr noundef nonnull @__PRETTY_FUNCTION__.px_negative_image) #2
  unreachable

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

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 8, ptr noundef nonnull @__PRETTY_FUNCTION__.px_negative_image) #2
  unreachable

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp eq i32 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 9, ptr noundef nonnull @__PRETTY_FUNCTION__.px_negative_image) #2
  unreachable

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %0, i64 12
  %25 = load i32, ptr %24, align 4, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %1, i64 12
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %28 = icmp eq i32 %25, %27
  br i1 %28, label %.preheader, label %82

.preheader:                                       ; preds = %23
  %29 = icmp sgt i32 %25, 0
  br i1 %29, label %.lr.ph, label %._crit_edge43

.lr.ph:                                           ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %0, i64 20
  %31 = getelementptr inbounds i8, ptr %1, i64 20
  %32 = icmp sgt i32 %18, 0
  br i1 %32, label %.critedge.lr.ph.us.preheader, label %._crit_edge43

.critedge.lr.ph.us.preheader:                     ; preds = %.lr.ph
  %wide.trip.count = zext nneg i32 %18 to i64
  %min.iters.check = icmp ult i32 %18, 8
  %min.iters.check47 = icmp ult i32 %18, 32
  %n.vec = and i64 %wide.trip.count, 2147483616
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %n.vec.remaining = and i64 %wide.trip.count, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec50 = and i64 %wide.trip.count, 2147483640
  %cmp.n54 = icmp eq i64 %n.vec50, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %iter.check

iter.check:                                       ; preds = %.critedge.lr.ph.us.preheader, %._crit_edge.us
  %.03542.us = phi i32 [ %81, %._crit_edge.us ], [ 0, %.critedge.lr.ph.us.preheader ]
  %33 = load ptr, ptr %0, align 8, !tbaa !13
  %34 = load i32, ptr %30, align 4, !tbaa !14
  %35 = mul nsw i32 %34, %.03542.us
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %33, i64 %36
  %38 = load ptr, ptr %1, align 8, !tbaa !13
  %39 = load i32, ptr %31, align 4, !tbaa !14
  %40 = mul nsw i32 %39, %.03542.us
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %38, i64 %41
  br i1 %min.iters.check, label %.critedge.us.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %43 = ptrtoint ptr %38 to i64
  %44 = ptrtoint ptr %33 to i64
  %45 = add i64 %43, %41
  %46 = add i64 %44, %36
  %47 = sub i64 %45, %46
  %diff.check = icmp ult i64 %47, 32
  br i1 %diff.check, label %.critedge.us.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  br i1 %min.iters.check47, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.main.loop.iter.check ]
  %48 = getelementptr inbounds i8, ptr %37, i64 %index
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %wide.load = load <16 x i8>, ptr %48, align 1, !tbaa !15
  %wide.load48 = load <16 x i8>, ptr %49, align 1, !tbaa !15
  %50 = xor <16 x i8> %wide.load, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
  %51 = xor <16 x i8> %wide.load48, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
  %52 = getelementptr inbounds i8, ptr %42, i64 %index
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  store <16 x i8> %50, ptr %52, align 1, !tbaa !15
  store <16 x i8> %51, ptr %53, align 1, !tbaa !15
  %index.next = add nuw i64 %index, 32
  %54 = icmp eq i64 %index.next, %n.vec
  br i1 %54, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %.critedge.us.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index51 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next53, %vec.epilog.vector.body ]
  %55 = getelementptr inbounds i8, ptr %37, i64 %index51
  %wide.load52 = load <8 x i8>, ptr %55, align 1, !tbaa !15
  %56 = xor <8 x i8> %wide.load52, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
  %57 = getelementptr inbounds i8, ptr %42, i64 %index51
  store <8 x i8> %56, ptr %57, align 1, !tbaa !15
  %index.next53 = add nuw i64 %index51, 8
  %58 = icmp eq i64 %index.next53, %n.vec50
  br i1 %58, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !20

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  br i1 %cmp.n54, label %._crit_edge.us, label %.critedge.us.preheader

.critedge.us.preheader:                           ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ 0, %vector.memcheck ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec50, %vec.epilog.middle.block ]
  br i1 %lcmp.mod.not, label %.critedge.us.prol.loopexit, label %.critedge.us.prol

.critedge.us.prol:                                ; preds = %.critedge.us.preheader, %.critedge.us.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.critedge.us.prol ], [ %indvars.iv.ph, %.critedge.us.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.critedge.us.prol ], [ 0, %.critedge.us.preheader ]
  %59 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv.prol
  %60 = load i8, ptr %59, align 1, !tbaa !15
  %61 = xor i8 %60, -1
  %62 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv.prol
  store i8 %61, ptr %62, align 1, !tbaa !15
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.critedge.us.prol.loopexit, label %.critedge.us.prol, !llvm.loop !21

.critedge.us.prol.loopexit:                       ; preds = %.critedge.us.prol, %.critedge.us.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.critedge.us.preheader ], [ %indvars.iv.next.prol, %.critedge.us.prol ]
  %63 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %64 = icmp ugt i64 %63, -4
  br i1 %64, label %._crit_edge.us, label %.critedge.us

.critedge.us:                                     ; preds = %.critedge.us.prol.loopexit, %.critedge.us
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.critedge.us ], [ %indvars.iv.unr, %.critedge.us.prol.loopexit ]
  %65 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = xor i8 %66, -1
  %68 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv
  store i8 %67, ptr %68, align 1, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv.next
  %70 = load i8, ptr %69, align 1, !tbaa !15
  %71 = xor i8 %70, -1
  %72 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv.next
  store i8 %71, ptr %72, align 1, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %73 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv.next.1
  %74 = load i8, ptr %73, align 1, !tbaa !15
  %75 = xor i8 %74, -1
  %76 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv.next.1
  store i8 %75, ptr %76, align 1, !tbaa !15
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %77 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv.next.2
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = xor i8 %78, -1
  %80 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv.next.2
  store i8 %79, ptr %80, align 1, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge.us, label %.critedge.us, !llvm.loop !23

._crit_edge.us:                                   ; preds = %.critedge.us.prol.loopexit, %.critedge.us, %vec.epilog.middle.block, %middle.block
  %81 = add nuw nsw i32 %.03542.us, 1
  %exitcond46.not = icmp eq i32 %81, %25
  br i1 %exitcond46.not, label %._crit_edge43, label %iter.check, !llvm.loop !24

82:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 10, ptr noundef nonnull @__PRETTY_FUNCTION__.px_negative_image) #2
  unreachable

._crit_edge43:                                    ; preds = %._crit_edge.us, %.lr.ph, %.preheader
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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 = { 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 #2 = { noreturn 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 = !{!"px_image_t", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 20}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18, !19}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !17, !18}
!24 = distinct !{!24, !17}


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