; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/process/src/c_src (filter)

; 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 [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 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

declare ptr @create_simple_mat(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @hypercv_integral(ptr noundef %0, ptr noundef %1) #3 {
  %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 ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %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 %17

16:                                               ; preds = %2
  br label %21

17:                                               ; preds = %2
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

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

36:                                               ; preds = %21
  br label %41

37:                                               ; preds = %21
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

41:                                               ; preds = %36
  %42 = load i32, ptr %8, align 4, !tbaa !12
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  br label %49

45:                                               ; preds = %41
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

49:                                               ; preds = %44
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load i32, ptr %5, align 4, !tbaa !12
  %54 = load i32, ptr %6, align 4, !tbaa !12
  %55 = call ptr @create_simple_mat(i32 noundef %53, i32 noundef %54, i32 noundef 3, i32 noundef 1)
  store ptr %55, ptr %4, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %52, %49
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %67

61:                                               ; preds = %56
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !14
  %65 = icmp eq i32 %64, 3
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %71

67:                                               ; preds = %61, %56
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  store ptr %74, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  store ptr %77, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %78

78:                                               ; preds = %172, %71
  %79 = load i32, ptr %11, align 4, !tbaa !12
  %80 = load i32, ptr %5, align 4, !tbaa !12
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %175

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

84:                                               ; preds = %168, %83
  %85 = load i32, ptr %13, align 4, !tbaa !12
  %86 = load i32, ptr %6, align 4, !tbaa !12
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %171

89:                                               ; preds = %84
  %90 = load i32, ptr %11, align 4, !tbaa !12
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %95, label %92

92:                                               ; preds = %89
  %93 = load i32, ptr %13, align 4, !tbaa !12
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %114

95:                                               ; preds = %92, %89
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !12
  %98 = load i32, ptr %6, align 4, !tbaa !12
  %99 = mul nsw i32 %97, %98
  %100 = load i32, ptr %13, align 4, !tbaa !12
  %101 = add nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %96, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !17
  %105 = zext i8 %104 to i32
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !12
  %108 = load i32, ptr %6, align 4, !tbaa !12
  %109 = mul nsw i32 %107, %108
  %110 = load i32, ptr %13, align 4, !tbaa !12
  %111 = add nsw i32 %109, %110
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %106, i64 %112
  store i32 %105, ptr %113, align 4, !tbaa !12
  br label %167

114:                                              ; preds = %92
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load i32, ptr %11, align 4, !tbaa !12
  %117 = sub nsw i32 %116, 1
  %118 = load i32, ptr %6, align 4, !tbaa !12
  %119 = mul nsw i32 %117, %118
  %120 = load i32, ptr %13, align 4, !tbaa !12
  %121 = add nsw i32 %119, %120
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %115, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !12
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load i32, ptr %11, align 4, !tbaa !12
  %127 = load i32, ptr %6, align 4, !tbaa !12
  %128 = mul nsw i32 %126, %127
  %129 = load i32, ptr %13, align 4, !tbaa !12
  %130 = add nsw i32 %128, %129
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %125, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !12
  %135 = add nsw i32 %124, %134
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i32, ptr %11, align 4, !tbaa !12
  %138 = load i32, ptr %6, align 4, !tbaa !12
  %139 = mul nsw i32 %137, %138
  %140 = load i32, ptr %13, align 4, !tbaa !12
  %141 = add nsw i32 %139, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i8, ptr %136, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !17
  %145 = zext i8 %144 to i32
  %146 = add nsw i32 %135, %145
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !12
  %149 = sub nsw i32 %148, 1
  %150 = load i32, ptr %6, align 4, !tbaa !12
  %151 = mul nsw i32 %149, %150
  %152 = load i32, ptr %13, align 4, !tbaa !12
  %153 = add nsw i32 %151, %152
  %154 = sub nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %147, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !12
  %158 = sub nsw i32 %146, %157
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load i32, ptr %11, align 4, !tbaa !12
  %161 = load i32, ptr %6, align 4, !tbaa !12
  %162 = mul nsw i32 %160, %161
  %163 = load i32, ptr %13, align 4, !tbaa !12
  %164 = add nsw i32 %162, %163
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i32, ptr %159, i64 %165
  store i32 %158, ptr %166, align 4, !tbaa !12
  br label %167

167:                                              ; preds = %114, %95
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %13, align 4, !tbaa !12
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %13, align 4, !tbaa !12
  br label %84, !llvm.loop !18

171:                                              ; preds = %88
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %11, align 4, !tbaa !12
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %11, align 4, !tbaa !12
  br label %78, !llvm.loop !20

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

attributes #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 = { 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 #4 = { noreturn nounwind }
attributes #5 = { 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, !11, i64 8}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !6, i64 24}
!17 = !{!7, !7, 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"

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

declare ptr @create_simple_mat(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @hypercv_integral(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %7

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

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

14:                                               ; preds = %7
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

18:                                               ; preds = %7
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !13
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %26, label %22

22:                                               ; preds = %18
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

26:                                               ; preds = %18
  %27 = icmp eq ptr %1, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %26
  %29 = tail call ptr @create_simple_mat(i32 noundef %8, i32 noundef %10, i32 noundef 3, i32 noundef 1) #5
  br label %30

30:                                               ; preds = %28, %26
  %.051 = phi ptr [ %29, %28 ], [ %1, %26 ]
  %31 = getelementptr inbounds i8, ptr %.051, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !13
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %.051, i64 8
  %36 = load i32, ptr %35, align 8, !tbaa !12
  %37 = icmp eq i32 %36, 3
  br i1 %37, label %42, label %38

38:                                               ; preds = %34, %30
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

42:                                               ; preds = %34
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %.051, i64 24
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = icmp sgt i32 %8, 0
  %48 = icmp sgt i32 %10, 0
  %or.cond = select i1 %47, i1 %48, i1 false
  br i1 %or.cond, label %.preheader.us.preheader, label %._crit_edge57

.preheader.us.preheader:                          ; preds = %42
  %49 = zext nneg i32 %10 to i64
  %wide.trip.count73 = zext nneg i32 %8 to i64
  %wide.trip.count = zext nneg i32 %10 to i64
  %exitcond.peel.not = icmp eq i32 %10, 1
  %wide.trip.count68 = zext nneg i32 %10 to i64
  %50 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %46, i64 %50
  %scevgep77 = getelementptr i8, ptr %44, i64 %wide.trip.count
  %51 = shl nuw nsw i64 %wide.trip.count, 2
  %52 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %52, 1
  %53 = icmp eq i32 %10, 2
  %unroll_iter = and i64 %52, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check = icmp ult i32 %10, 8
  %bound0 = icmp ult ptr %46, %scevgep77
  %bound1 = icmp ult ptr %44, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter82 = and i64 %wide.trip.count, 3
  %lcmp.mod83.not = icmp eq i64 %xtraiter82, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv70 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next71, %._crit_edge.us ]
  %54 = mul i64 %51, %indvars.iv70
  %scevgep79 = getelementptr i8, ptr %46, i64 %54
  %55 = icmp eq i64 %indvars.iv70, 0
  %56 = add nsw i64 %indvars.iv70, -1
  %57 = mul nsw i64 %56, %49
  %58 = mul nuw nsw i64 %indvars.iv70, %49
  br i1 %55, label %.lr.ph.split.us.us.preheader, label %72

.lr.ph.split.us.us.preheader:                     ; preds = %.preheader.us
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %.lr.ph.split.us.us.preheader80, label %vector.body

.lr.ph.split.us.us.preheader80:                   ; preds = %.lr.ph.split.us.us.preheader, %middle.block
  %indvars.iv65.ph = phi i64 [ 0, %.lr.ph.split.us.us.preheader ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod83.not, label %.lr.ph.split.us.us.prol.loopexit, label %.lr.ph.split.us.us.prol

.lr.ph.split.us.us.prol:                          ; preds = %.lr.ph.split.us.us.preheader80, %.lr.ph.split.us.us.prol
  %indvars.iv65.prol = phi i64 [ %indvars.iv.next66.prol, %.lr.ph.split.us.us.prol ], [ %indvars.iv65.ph, %.lr.ph.split.us.us.preheader80 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.split.us.us.prol ], [ 0, %.lr.ph.split.us.us.preheader80 ]
  %59 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv65.prol
  %60 = load i8, ptr %59, align 1, !tbaa !15
  %61 = zext i8 %60 to i32
  %62 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv65.prol
  store i32 %61, ptr %62, align 4, !tbaa !16
  %indvars.iv.next66.prol = add nuw nsw i64 %indvars.iv65.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter82
  br i1 %prol.iter.cmp.not, label %.lr.ph.split.us.us.prol.loopexit, label %.lr.ph.split.us.us.prol, !llvm.loop !17

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

vector.body:                                      ; preds = %.lr.ph.split.us.us.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.split.us.us.preheader ]
  %65 = getelementptr inbounds i8, ptr %44, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %wide.load = load <4 x i8>, ptr %65, align 1, !tbaa !15, !alias.scope !19
  %wide.load78 = load <4 x i8>, ptr %66, align 1, !tbaa !15, !alias.scope !19
  %67 = zext <4 x i8> %wide.load to <4 x i32>
  %68 = zext <4 x i8> %wide.load78 to <4 x i32>
  %69 = getelementptr inbounds i32, ptr %46, i64 %index
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <4 x i32> %67, ptr %69, align 4, !tbaa !16, !alias.scope !22, !noalias !19
  store <4 x i32> %68, ptr %70, align 4, !tbaa !16, !alias.scope !22, !noalias !19
  %index.next = add nuw i64 %index, 8
  %71 = icmp eq i64 %index.next, %n.vec
  br i1 %71, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %.lr.ph.split.us.us.preheader80

72:                                               ; preds = %.preheader.us
  %73 = getelementptr inbounds i8, ptr %44, i64 %58
  %74 = load i8, ptr %73, align 1, !tbaa !15
  %75 = zext i8 %74 to i32
  %76 = getelementptr inbounds i32, ptr %46, i64 %58
  store i32 %75, ptr %76, align 4, !tbaa !16
  br i1 %exitcond.peel.not, label %._crit_edge.us, label %.lr.ph.split.us60.peel.next

.lr.ph.split.us60.peel.next:                      ; preds = %72
  %invariant.gep = getelementptr i32, ptr %46, i64 %57
  %load_initial = load i32, ptr %scevgep79, align 4
  br i1 %53, label %._crit_edge.us.loopexit81.unr-lcssa, label %.lr.ph.split.us60.peel.next.new

.lr.ph.split.us60.peel.next.new:                  ; preds = %.lr.ph.split.us60.peel.next, %.lr.ph.split.us60.peel.next.new
  %store_forwarded = phi i32 [ %98, %.lr.ph.split.us60.peel.next.new ], [ %load_initial, %.lr.ph.split.us60.peel.next ]
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph.split.us60.peel.next.new ], [ 1, %.lr.ph.split.us60.peel.next ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph.split.us60.peel.next.new ], [ 0, %.lr.ph.split.us60.peel.next ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv
  %77 = load i32, ptr %gep, align 4, !tbaa !16
  %78 = add nuw nsw i64 %indvars.iv, %58
  %79 = getelementptr i32, ptr %46, i64 %78
  %80 = add nsw i32 %store_forwarded, %77
  %81 = getelementptr inbounds i8, ptr %44, i64 %78
  %82 = load i8, ptr %81, align 1, !tbaa !15
  %83 = zext i8 %82 to i32
  %84 = add nsw i32 %80, %83
  %85 = getelementptr i8, ptr %gep, i64 -4
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = sub i32 %84, %86
  store i32 %87, ptr %79, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next
  %88 = load i32, ptr %gep.1, align 4, !tbaa !16
  %89 = add nuw nsw i64 %indvars.iv.next, %58
  %90 = getelementptr i32, ptr %46, i64 %89
  %91 = add nsw i32 %87, %88
  %92 = getelementptr inbounds i8, ptr %44, i64 %89
  %93 = load i8, ptr %92, align 1, !tbaa !15
  %94 = zext i8 %93 to i32
  %95 = add nsw i32 %91, %94
  %96 = getelementptr i8, ptr %gep.1, i64 -4
  %97 = load i32, ptr %96, align 4, !tbaa !16
  %98 = sub i32 %95, %97
  store i32 %98, ptr %90, align 4, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.loopexit81.unr-lcssa, label %.lr.ph.split.us60.peel.next.new, !llvm.loop !28

._crit_edge.us.loopexit81.unr-lcssa:              ; preds = %.lr.ph.split.us60.peel.next.new, %.lr.ph.split.us60.peel.next
  %store_forwarded.unr = phi i32 [ %load_initial, %.lr.ph.split.us60.peel.next ], [ %98, %.lr.ph.split.us60.peel.next.new ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.split.us60.peel.next ], [ %indvars.iv.next.1, %.lr.ph.split.us60.peel.next.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.loopexit81.epilog-lcssa

._crit_edge.us.loopexit81.epilog-lcssa:           ; preds = %._crit_edge.us.loopexit81.unr-lcssa
  %gep.epil = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.unr
  %99 = load i32, ptr %gep.epil, align 4, !tbaa !16
  %100 = add nuw nsw i64 %indvars.iv.unr, %58
  %101 = getelementptr i32, ptr %46, i64 %100
  %102 = add nsw i32 %store_forwarded.unr, %99
  %103 = getelementptr inbounds i8, ptr %44, i64 %100
  %104 = load i8, ptr %103, align 1, !tbaa !15
  %105 = zext i8 %104 to i32
  %106 = add nsw i32 %102, %105
  %107 = getelementptr i8, ptr %gep.epil, i64 -4
  %108 = load i32, ptr %107, align 4, !tbaa !16
  %109 = sub i32 %106, %108
  store i32 %109, ptr %101, align 4, !tbaa !16
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit81.epilog-lcssa, %._crit_edge.us.loopexit81.unr-lcssa, %.lr.ph.split.us.us.prol.loopexit, %.lr.ph.split.us.us, %middle.block, %72
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count73
  br i1 %exitcond74.not, label %._crit_edge57, label %.preheader.us, !llvm.loop !30

.lr.ph.split.us.us:                               ; preds = %.lr.ph.split.us.us.prol.loopexit, %.lr.ph.split.us.us
  %indvars.iv65 = phi i64 [ %indvars.iv.next66.3, %.lr.ph.split.us.us ], [ %indvars.iv65.unr, %.lr.ph.split.us.us.prol.loopexit ]
  %110 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv65
  %111 = load i8, ptr %110, align 1, !tbaa !15
  %112 = zext i8 %111 to i32
  %113 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv65
  store i32 %112, ptr %113, align 4, !tbaa !16
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %114 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv.next66
  %115 = load i8, ptr %114, align 1, !tbaa !15
  %116 = zext i8 %115 to i32
  %117 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv.next66
  store i32 %116, ptr %117, align 4, !tbaa !16
  %indvars.iv.next66.1 = add nuw nsw i64 %indvars.iv65, 2
  %118 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv.next66.1
  %119 = load i8, ptr %118, align 1, !tbaa !15
  %120 = zext i8 %119 to i32
  %121 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv.next66.1
  store i32 %120, ptr %121, align 4, !tbaa !16
  %indvars.iv.next66.2 = add nuw nsw i64 %indvars.iv65, 3
  %122 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv.next66.2
  %123 = load i8, ptr %122, align 1, !tbaa !15
  %124 = zext i8 %123 to i32
  %125 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv.next66.2
  store i32 %124, ptr %125, align 4, !tbaa !16
  %indvars.iv.next66.3 = add nuw nsw i64 %indvars.iv65, 4
  %exitcond69.not.3 = icmp eq i64 %indvars.iv.next66.3, %wide.trip.count68
  br i1 %exitcond69.not.3, label %._crit_edge.us, label %.lr.ph.split.us.us, !llvm.loop !31

._crit_edge57:                                    ; preds = %._crit_edge.us, %42
  ret void
}

attributes #0 = { 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 #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 = { "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 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 #4 = { noreturn nounwind }
attributes #5 = { 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, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !10, i64 24}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25, !29}
!29 = !{!"llvm.loop.peeled.count", i32 1}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25, !26}


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