; LLVM IR from ermig1979/Simd :: src/Test/TestAnyToAny.ll (ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE)

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

@__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats = external hidden unnamed_addr constant [5 x i32], align 16
@_ZN4Test1WE = external global i32, align 4
@_ZN4Test1HE = external global i32, align 4

; 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef, i64 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE(ptr noundef nonnull align 8 dereferenceable(256) %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca [5 x i32], align 16
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #3
  store i8 1, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 20, ptr %4) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !11
  br label %8

8:                                                ; preds = %39, %1
  %9 = load i64, ptr %5, align 8, !tbaa !11
  %10 = icmp ult i64 %9, 5
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %42

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %35, %12
  %14 = load i64, ptr %7, align 8, !tbaa !11
  %15 = icmp ult i64 %14, 5
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %38

17:                                               ; preds = %13
  %18 = load i8, ptr %3, align 1, !tbaa !9, !range !13, !noundef !14
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %32

20:                                               ; preds = %17
  %21 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !15
  %22 = sext i32 %21 to i64
  %23 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !15
  %24 = sext i32 %23 to i64
  %25 = load i64, ptr %5, align 8, !tbaa !11
  %26 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !17
  %28 = load i64, ptr %7, align 8, !tbaa !11
  %29 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %31 = call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %22, i64 noundef %24, i32 noundef %27, i32 noundef %30)
  br label %32

32:                                               ; preds = %20, %17
  %33 = phi i1 [ false, %17 ], [ %31, %20 ]
  %34 = zext i1 %33 to i8
  store i8 %34, ptr %3, align 1, !tbaa !9
  br label %35

35:                                               ; preds = %32
  %36 = load i64, ptr %7, align 8, !tbaa !11
  %37 = add i64 %36, 1
  store i64 %37, ptr %7, align 8, !tbaa !11
  br label %13, !llvm.loop !19

38:                                               ; preds = %16
  br label %39

39:                                               ; preds = %38
  %40 = load i64, ptr %5, align 8, !tbaa !11
  %41 = add i64 %40, 1
  store i64 %41, ptr %5, align 8, !tbaa !11
  br label %8, !llvm.loop !21

42:                                               ; preds = %11
  %43 = load i8, ptr %3, align 1, !tbaa !9, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #3
  ret i1 %44
}

; 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

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


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

@__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats = external hidden unnamed_addr constant [5 x i32], align 16
@_ZN4Test1WE = external local_unnamed_addr global i32, align 4
@_ZN4Test1HE = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(256) %0) local_unnamed_addr #0 {
  %2 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %3 = sext i32 %2 to i64
  %4 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %5 = sext i32 %4 to i64
  %6 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %7 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %3, i64 noundef %5, i32 noundef %6, i32 noundef %6)
  br i1 %7, label %8, label %.thread49

8:                                                ; preds = %1
  %9 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %15 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %10, i64 noundef %12, i32 noundef %13, i32 noundef %14)
  br i1 %15, label %16, label %.thread49

16:                                               ; preds = %8
  %17 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %23 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %18, i64 noundef %20, i32 noundef %21, i32 noundef %22)
  br i1 %23, label %24, label %.thread49

24:                                               ; preds = %16
  %25 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %31 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %26, i64 noundef %28, i32 noundef %29, i32 noundef %30)
  br i1 %31, label %.preheader.1, label %.thread49

.preheader.1:                                     ; preds = %24
  %32 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %38 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %33, i64 noundef %35, i32 noundef %36, i32 noundef %37)
  br i1 %38, label %39, label %.thread49

39:                                               ; preds = %.preheader.1
  %40 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %45 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %46 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %41, i64 noundef %43, i32 noundef %44, i32 noundef %45)
  br i1 %46, label %47, label %.thread49

47:                                               ; preds = %39
  %48 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %53 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %49, i64 noundef %51, i32 noundef %52, i32 noundef %52)
  br i1 %53, label %54, label %.thread49

54:                                               ; preds = %47
  %55 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %61 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %56, i64 noundef %58, i32 noundef %59, i32 noundef %60)
  br i1 %61, label %62, label %.thread49

62:                                               ; preds = %54
  %63 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %69 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %64, i64 noundef %66, i32 noundef %67, i32 noundef %68)
  br i1 %69, label %.preheader.2, label %.thread49

.preheader.2:                                     ; preds = %62
  %70 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %76 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %71, i64 noundef %73, i32 noundef %74, i32 noundef %75)
  br i1 %76, label %77, label %.thread49

77:                                               ; preds = %.preheader.2
  %78 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %83 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %84 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %79, i64 noundef %81, i32 noundef %82, i32 noundef %83)
  br i1 %84, label %85, label %.thread49

85:                                               ; preds = %77
  %86 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %92 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %87, i64 noundef %89, i32 noundef %90, i32 noundef %91)
  br i1 %92, label %93, label %.thread49

93:                                               ; preds = %85
  %94 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %99 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %95, i64 noundef %97, i32 noundef %98, i32 noundef %98)
  br i1 %99, label %100, label %.thread49

100:                                              ; preds = %93
  %101 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %107 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %102, i64 noundef %104, i32 noundef %105, i32 noundef %106)
  br i1 %107, label %.preheader.3, label %.thread49

.preheader.3:                                     ; preds = %100
  %108 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %114 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %109, i64 noundef %111, i32 noundef %112, i32 noundef %113)
  br i1 %114, label %115, label %.thread49

115:                                              ; preds = %.preheader.3
  %116 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %121 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %122 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %117, i64 noundef %119, i32 noundef %120, i32 noundef %121)
  br i1 %122, label %123, label %.thread49

123:                                              ; preds = %115
  %124 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %130 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %125, i64 noundef %127, i32 noundef %128, i32 noundef %129)
  br i1 %130, label %131, label %.thread49

131:                                              ; preds = %123
  %132 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %138 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %133, i64 noundef %135, i32 noundef %136, i32 noundef %137)
  br i1 %138, label %139, label %.thread49

139:                                              ; preds = %131
  %140 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %145 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %141, i64 noundef %143, i32 noundef %144, i32 noundef %144)
  br i1 %145, label %.preheader.4, label %.thread49

.preheader.4:                                     ; preds = %139
  %146 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %152 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %147, i64 noundef %149, i32 noundef %150, i32 noundef %151)
  br i1 %152, label %153, label %.thread49

153:                                              ; preds = %.preheader.4
  %154 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %159 = load i32, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, align 16, !tbaa !9
  %160 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %155, i64 noundef %157, i32 noundef %158, i32 noundef %159)
  br i1 %160, label %161, label %.thread49

161:                                              ; preds = %153
  %162 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 4), align 4, !tbaa !9
  %168 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %163, i64 noundef %165, i32 noundef %166, i32 noundef %167)
  br i1 %168, label %169, label %.thread49

169:                                              ; preds = %161
  %170 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %175 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 8), align 8, !tbaa !9
  %176 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %171, i64 noundef %173, i32 noundef %174, i32 noundef %175)
  br i1 %176, label %177, label %.thread49

177:                                              ; preds = %169
  %178 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 12), align 4, !tbaa !9
  %184 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %179, i64 noundef %181, i32 noundef %182, i32 noundef %183)
  br i1 %184, label %185, label %.thread49

185:                                              ; preds = %177
  %186 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test23ConvertImageSpecialTestERKNS_7OptionsE.formats, i64 16), align 16, !tbaa !9
  %191 = tail call noundef zeroext i1 @_ZN4Test23ConvertImageSpecialTestEmmN4Simd4ViewINS0_9AllocatorEE6FormatES4_(i64 noundef %187, i64 noundef %189, i32 noundef %190, i32 noundef %190)
  br label %.thread49

.thread49:                                        ; preds = %1, %8, %16, %24, %.preheader.1, %39, %47, %54, %62, %.preheader.2, %77, %85, %93, %100, %.preheader.3, %115, %123, %131, %139, %.preheader.4, %153, %161, %169, %185, %177
  %192 = phi i1 [ false, %177 ], [ %191, %185 ], [ false, %169 ], [ false, %161 ], [ false, %153 ], [ false, %.preheader.4 ], [ false, %139 ], [ false, %131 ], [ false, %123 ], [ false, %115 ], [ false, %.preheader.3 ], [ false, %100 ], [ false, %93 ], [ false, %85 ], [ false, %77 ], [ false, %.preheader.2 ], [ false, %62 ], [ false, %54 ], [ false, %47 ], [ false, %39 ], [ false, %.preheader.1 ], [ false, %24 ], [ false, %16 ], [ false, %8 ], [ false, %1 ]
  ret i1 %192
}

attributes #0 = { mustprogress 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !7, i64 0}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass