; LLVM IR from ermig1979/Simd :: src/Test/TestDrawing.ll (ZN4Test30DrawFilledRectangleSpecialTestERKNS_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"

%"struct.Simd::View" = type <{ i64, i64, i64, i32, [4 x i8], ptr, i8, [7 x i8] }>
%"struct.Simd::Rectangle" = type { i64, i64, i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZN4Test1WE = external global i32, align 4
@_ZN4Test1HE = external global i32, align 4
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv() #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef, i32 noundef, ptr noundef, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4FillINS_9AllocatorEEEvRNS_4ViewIT_EEh(ptr noundef nonnull align 8 dereferenceable(41), i8 noundef zeroext) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Test6RandomEi(i32 noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd4ViewINS_9AllocatorEE4SaveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE17SimdImageFileTypei(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9RectangleIlEC2IllllEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, i64 noundef) unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test30DrawFilledRectangleSpecialTestERKNS_7OptionsE(ptr noundef nonnull align 8 dereferenceable(256) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.Simd::View", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.Simd::Rectangle", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #6
  %17 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = call noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
  call void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %3, i64 noundef %18, i64 noundef %20, i32 noundef 1, ptr noundef null, i64 noundef %21)
  invoke void @_ZN4Simd4FillINS_9AllocatorEEEvRNS_4ViewIT_EEh(ptr noundef nonnull align 8 dereferenceable(41) %3, i8 noundef zeroext 0)
          to label %22 unwind label %27

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 55, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 256, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 55, ptr %8, align 8, !tbaa !11
  br label %23

23:                                               ; preds = %84, %22
  %24 = load i64, ptr %8, align 8, !tbaa !11
  %25 = icmp ult i64 %24, 256
  br i1 %25, label %31, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %111

27:                                               ; preds = %1
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %4, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %5, align 4
  br label %125

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %32 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !9
  %33 = mul nsw i32 %32, 5
  %34 = sdiv i32 %33, 4
  %35 = invoke noundef i32 @_ZN4Test6RandomEi(i32 noundef %34)
          to label %36 unwind label %87

36:                                               ; preds = %31
  %37 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !9
  %38 = sdiv i32 %37, 8
  %39 = sub nsw i32 %35, %38
  %40 = sext i32 %39 to i64
  store i64 %40, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %41 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !9
  %42 = mul nsw i32 %41, 5
  %43 = sdiv i32 %42, 4
  %44 = invoke noundef i32 @_ZN4Test6RandomEi(i32 noundef %43)
          to label %45 unwind label %91

45:                                               ; preds = %36
  %46 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !9
  %47 = sdiv i32 %46, 8
  %48 = sub nsw i32 %44, %47
  %49 = sext i32 %48 to i64
  store i64 %49, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %50 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !9
  %51 = mul nsw i32 %50, 5
  %52 = sdiv i32 %51, 4
  %53 = invoke noundef i32 @_ZN4Test6RandomEi(i32 noundef %52)
          to label %54 unwind label %95

54:                                               ; preds = %45
  %55 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !9
  %56 = sdiv i32 %55, 8
  %57 = sub nsw i32 %53, %56
  %58 = sext i32 %57 to i64
  store i64 %58, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %59 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !9
  %60 = mul nsw i32 %59, 5
  %61 = sdiv i32 %60, 4
  %62 = invoke noundef i32 @_ZN4Test6RandomEi(i32 noundef %61)
          to label %63 unwind label %99

63:                                               ; preds = %54
  %64 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !9
  %65 = sdiv i32 %64, 8
  %66 = sub nsw i32 %62, %65
  %67 = sext i32 %66 to i64
  store i64 %67, ptr %12, align 8, !tbaa !11
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %69 unwind label %99

69:                                               ; preds = %63
  %70 = load i64, ptr %68, align 8, !tbaa !11
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %72 unwind label %99

72:                                               ; preds = %69
  %73 = load i64, ptr %71, align 8, !tbaa !11
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %75 unwind label %99

75:                                               ; preds = %72
  %76 = load i64, ptr %74, align 8, !tbaa !11
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %78 unwind label %99

78:                                               ; preds = %75
  %79 = load i64, ptr %77, align 8, !tbaa !11
  invoke void @_ZN4Simd9RectangleIlEC2IllllEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %70, i64 noundef %73, i64 noundef %76, i64 noundef %79)
          to label %80 unwind label %99

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %81 = load i64, ptr %8, align 8, !tbaa !11
  %82 = trunc i64 %81 to i8
  store i8 %82, ptr %14, align 1, !tbaa !13
  invoke void @_ZN4Simd19DrawFilledRectangleINS_9AllocatorEhEEvRNS_4ViewIT_EENS_9RectangleIlEERKT0_(ptr noundef nonnull align 8 dereferenceable(41) %3, ptr noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %83 unwind label %103

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %8, align 8, !tbaa !11
  %86 = add i64 %85, 25
  store i64 %86, ptr %8, align 8, !tbaa !11
  br label %23, !llvm.loop !14

87:                                               ; preds = %31
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  br label %110

91:                                               ; preds = %36
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  br label %109

95:                                               ; preds = %45
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  br label %108

99:                                               ; preds = %78, %75, %72, %69, %63, %54
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  br label %107

103:                                              ; preds = %80
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %4, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %108

108:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %109

109:                                              ; preds = %108, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %110

110:                                              ; preds = %109, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %124

111:                                              ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %112 unwind label %115

112:                                              ; preds = %111
  %113 = invoke noundef zeroext i1 @_ZNK4Simd4ViewINS_9AllocatorEE4SaveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE17SimdImageFileTypei(ptr noundef nonnull align 8 dereferenceable(41) %3, ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef 0, i32 noundef 100)
          to label %114 unwind label %119

114:                                              ; preds = %112
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  ret i1 true

115:                                              ; preds = %111
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  br label %123

119:                                              ; preds = %112
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %123

123:                                              ; preds = %119, %115
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %124

124:                                              ; preds = %123, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %125

125:                                              ; preds = %124, %27
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %4, align 8
  %128 = load i32, ptr %5, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd19DrawFilledRectangleINS_9AllocatorEhEEvRNS_4ViewIT_EENS_9RectangleIlEERKT0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { 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 #3 = { alwaysinline 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 #4 = { alwaysinline mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Simd::View" = type <{ i64, i64, i64, i32, [4 x i8], ptr, i8, [7 x i8] }>
%"struct.Simd::Rectangle" = type { i64, i64, i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZN4Test1WE = external local_unnamed_addr global i32, align 4
@_ZN4Test1HE = external local_unnamed_addr global i32, align 4
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv() local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef, i32 noundef, ptr noundef, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4FillINS_9AllocatorEEEvRNS_4ViewIT_EEh(ptr noundef nonnull align 8 dereferenceable(41), i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Test6RandomEi(i32 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd4ViewINS_9AllocatorEE4SaveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE17SimdImageFileTypei(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9RectangleIlEC2IllllEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, i64 noundef) unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test30DrawFilledRectangleSpecialTestERKNS_7OptionsE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(256) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.Simd::View", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.Simd::Rectangle", align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  %11 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = tail call noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
  call void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %2, i64 noundef %12, i64 noundef %14, i32 noundef 1, ptr noundef null, i64 noundef %15)
  invoke void @_ZN4Simd4FillINS_9AllocatorEEEvRNS_4ViewIT_EEh(ptr noundef nonnull align 8 dereferenceable(41) %2, i8 noundef zeroext 0)
          to label %.preheader unwind label %17

16:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %61 unwind label %64

17:                                               ; preds = %1
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %69

.preheader:                                       ; preds = %1, %56
  %.015 = phi i64 [ %57, %56 ], [ 55, %1 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %19 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %20 = mul nsw i32 %19, 5
  %21 = sdiv i32 %20, 4
  %22 = call noundef i32 @_ZN4Test6RandomEi(i32 noundef %21)
  %23 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %.neg = sdiv i32 %23, -8
  %24 = add i32 %.neg, %22
  %25 = sext i32 %24 to i64
  store i64 %25, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %26 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %27 = mul nsw i32 %26, 5
  %28 = sdiv i32 %27, 4
  %29 = call noundef i32 @_ZN4Test6RandomEi(i32 noundef %28)
  %30 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %.neg9 = sdiv i32 %30, -8
  %31 = add i32 %.neg9, %29
  %32 = sext i32 %31 to i64
  store i64 %32, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %33 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %34 = mul nsw i32 %33, 5
  %35 = sdiv i32 %34, 4
  %36 = call noundef i32 @_ZN4Test6RandomEi(i32 noundef %35)
  %37 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %.neg10 = sdiv i32 %37, -8
  %38 = add i32 %.neg10, %36
  %39 = sext i32 %38 to i64
  store i64 %39, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %40 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %41 = mul nsw i32 %40, 5
  %42 = sdiv i32 %41, 4
  %43 = call noundef i32 @_ZN4Test6RandomEi(i32 noundef %42)
  %44 = load i32, ptr @_ZN4Test1HE, align 4, !tbaa !5
  %.neg11 = sdiv i32 %44, -8
  %45 = add i32 %.neg11, %43
  %46 = sext i32 %45 to i64
  store i64 %46, ptr %6, align 8, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %54 = load i64, ptr %53, align 8, !tbaa !9
  call void @_ZN4Simd9RectangleIlEC2IllllEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %48, i64 noundef %50, i64 noundef %52, i64 noundef %54)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  %55 = trunc nuw i64 %.015 to i8
  store i8 %55, ptr %8, align 1, !tbaa !11
  invoke void @_ZN4Simd19DrawFilledRectangleINS_9AllocatorEhEEvRNS_4ViewIT_EENS_9RectangleIlEERKT0_(ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %56 unwind label %59

56:                                               ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %57 = add nuw nsw i64 %.015, 25
  %58 = icmp ult i64 %.015, 231
  br i1 %58, label %.preheader, label %16, !llvm.loop !12

59:                                               ; preds = %.preheader
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %69

61:                                               ; preds = %16
  %62 = invoke noundef zeroext i1 @_ZNK4Simd4ViewINS_9AllocatorEE4SaveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE17SimdImageFileTypei(ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 0, i32 noundef 100)
          to label %63 unwind label %66

63:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  ret i1 true

64:                                               ; preds = %16
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %61
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %68

68:                                               ; preds = %66, %64
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %69

69:                                               ; preds = %59, %68, %17
  %.pn12.pn = phi { ptr, i32 } [ %18, %17 ], [ %60, %59 ], [ %.pn, %68 ]
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn12.pn
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd19DrawFilledRectangleINS_9AllocatorEhEEvRNS_4ViewIT_EENS_9RectangleIlEERKT0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass