; LLVM IR from ermig1979/Simd :: src/Test (TestShift)

; 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::Point" = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.Simd::Rectangle" = type { i64, i64, i64, i64 }

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

declare i32 @__gxx_personality_v0(...)

; 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
define dso_local noundef zeroext i1 @_ZN4Test16CreateBackgroundERN4Simd4ViewINS0_9AllocatorEEERNS0_9RectangleIlEE(ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.Simd::View", align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.Simd::Point", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.Simd::View", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.Simd::Rectangle", align 8
  %29 = alloca %"struct.Simd::View", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(41) %5)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 64, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 -64, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 256, ptr %8, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 128, ptr %9, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %30 = invoke noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef 36)
          to label %31 unwind label %41

31:                                               ; preds = %2
  store i64 %30, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %32 = invoke noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef 73)
          to label %33 unwind label %45

33:                                               ; preds = %31
  store i64 %32, ptr %13, align 8, !tbaa !10
  %34 = invoke noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
          to label %35 unwind label %45

35:                                               ; preds = %33
  invoke void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %5, i64 noundef 256, i64 noundef 256, i32 noundef 1, ptr noundef null, i64 noundef %34)
          to label %36 unwind label %45

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !10
  br label %37

37:                                               ; preds = %98, %36
  %38 = load i64, ptr %14, align 8, !tbaa !10
  %39 = icmp ult i64 %38, 256
  br i1 %39, label %49, label %40

40:                                               ; preds = %37
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %102

41:                                               ; preds = %2
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %11, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %12, align 4
  br label %212

45:                                               ; preds = %102, %35, %33, %31
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %11, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %12, align 4
  br label %211

49:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %50 = load i64, ptr %14, align 8, !tbaa !10
  %51 = sub i64 128, %50
  %52 = invoke noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef %51)
          to label %53 unwind label %58

53:                                               ; preds = %49
  store i64 %52, ptr %16, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !10
  br label %54

54:                                               ; preds = %85, %53
  %55 = load i64, ptr %17, align 8, !tbaa !10
  %56 = icmp ult i64 %55, 256
  br i1 %56, label %62, label %57

57:                                               ; preds = %54
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %97

58:                                               ; preds = %49
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %11, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %12, align 4
  br label %101

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %63 = load i64, ptr %17, align 8, !tbaa !10
  %64 = sub i64 128, %63
  %65 = invoke noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef %64)
          to label %66 unwind label %88

66:                                               ; preds = %62
  store i64 %65, ptr %18, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %67 = load i64, ptr %16, align 8, !tbaa !10
  %68 = load i64, ptr %18, align 8, !tbaa !10
  %69 = add i64 %67, %68
  store i64 %69, ptr %19, align 8, !tbaa !10
  %70 = load i64, ptr %19, align 8, !tbaa !10
  %71 = load i64, ptr %10, align 8, !tbaa !10
  %72 = icmp uge i64 %70, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %66
  %74 = load i64, ptr %19, align 8, !tbaa !10
  %75 = load i64, ptr %13, align 8, !tbaa !10
  %76 = icmp ule i64 %74, %75
  br label %77

77:                                               ; preds = %73, %66
  %78 = phi i1 [ false, %66 ], [ %76, %73 ]
  %79 = zext i1 %78 to i64
  %80 = select i1 %78, i8 -64, i8 64
  %81 = load i64, ptr %17, align 8, !tbaa !10
  %82 = load i64, ptr %14, align 8, !tbaa !10
  %83 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIhEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %5, i64 noundef %81, i64 noundef %82)
          to label %84 unwind label %92

84:                                               ; preds = %77
  store i8 %80, ptr %83, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %17, align 8, !tbaa !10
  %87 = add i64 %86, 1
  store i64 %87, ptr %17, align 8, !tbaa !10
  br label %54, !llvm.loop !12

88:                                               ; preds = %62
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %96

92:                                               ; preds = %77
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %101

97:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %14, align 8, !tbaa !10
  %100 = add i64 %99, 1
  store i64 %100, ptr %14, align 8, !tbaa !10
  br label %37, !llvm.loop !14

101:                                              ; preds = %96, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %211

102:                                              ; preds = %40
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN4Test10FillRandomERN4Simd4ViewINS0_9AllocatorEEEhh(ptr noundef nonnull align 8 dereferenceable(41) %103, i8 noundef zeroext 0, i8 noundef zeroext -128)
          to label %104 unwind label %45

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.Simd::View", ptr %105, i32 0, i32 0
  %107 = load i64, ptr %106, align 8, !tbaa !15
  %108 = udiv i64 %107, 2
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.Simd::View", ptr %109, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !19
  %112 = udiv i64 %111, 2
  invoke void @_ZN4Simd5PointIlEC2ImmEET_T0_(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %108, i64 noundef %112)
          to label %113 unwind label %120

113:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 -1, ptr %22, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %114 unwind label %124

114:                                              ; preds = %113
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 64, ptr %25, align 8, !tbaa !10
  br label %115

115:                                              ; preds = %140, %114
  %116 = load i64, ptr %24, align 8, !tbaa !10
  %117 = load i64, ptr %25, align 8, !tbaa !10
  %118 = icmp ult i64 %116, %117
  br i1 %118, label %128, label %119

119:                                              ; preds = %115
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %143

120:                                              ; preds = %104
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %210

124:                                              ; preds = %113
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %209

128:                                              ; preds = %115
  %129 = load i64, ptr %24, align 8, !tbaa !10
  %130 = mul i64 %129, 255
  %131 = load i64, ptr %25, align 8, !tbaa !10
  %132 = udiv i64 %130, %131
  %133 = trunc i64 %132 to i8
  %134 = load i64, ptr %24, align 8, !tbaa !10
  %135 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %134) #7
  store i8 %133, ptr %135, align 1, !tbaa !9
  %136 = load i64, ptr %24, align 8, !tbaa !10
  %137 = sub i64 256, %136
  %138 = sub i64 %137, 1
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %138) #7
  store i8 %133, ptr %139, align 1, !tbaa !9
  br label %140

140:                                              ; preds = %128
  %141 = load i64, ptr %24, align 8, !tbaa !10
  %142 = add i64 %141, 1
  store i64 %142, ptr %24, align 8, !tbaa !10
  br label %115, !llvm.loop !20

143:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #7
  %144 = invoke noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
          to label %145 unwind label %181

145:                                              ; preds = %143
  invoke void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %26, i64 noundef 256, i64 noundef 256, i32 noundef 1, ptr noundef null, i64 noundef %144)
          to label %146 unwind label %181

146:                                              ; preds = %145
  %147 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %148 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  invoke void @_ZN4Simd13VectorProductINS_9AllocatorEEEvPKhS3_RNS_4ViewIT_EE(ptr noundef %147, ptr noundef %148, ptr noundef nonnull align 8 dereferenceable(41) %26)
          to label %149 unwind label %185

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 128, ptr %27, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #7
  %150 = getelementptr inbounds %"struct.Simd::Point", ptr %20, i32 0, i32 0
  %151 = load i64, ptr %150, align 8, !tbaa !21
  %152 = load i64, ptr %27, align 8, !tbaa !10
  %153 = sub i64 %151, %152
  %154 = getelementptr inbounds %"struct.Simd::Point", ptr %20, i32 0, i32 1
  %155 = load i64, ptr %154, align 8, !tbaa !23
  %156 = load i64, ptr %27, align 8, !tbaa !10
  %157 = sub i64 %155, %156
  %158 = getelementptr inbounds %"struct.Simd::Point", ptr %20, i32 0, i32 0
  %159 = load i64, ptr %158, align 8, !tbaa !21
  %160 = load i64, ptr %27, align 8, !tbaa !10
  %161 = add i64 %159, %160
  %162 = getelementptr inbounds %"struct.Simd::Point", ptr %20, i32 0, i32 1
  %163 = load i64, ptr %162, align 8, !tbaa !23
  %164 = load i64, ptr %27, align 8, !tbaa !10
  %165 = add i64 %163, %164
  invoke void @_ZN4Simd9RectangleIlEC2ImmmmEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef %153, i64 noundef %157, i64 noundef %161, i64 noundef %165)
          to label %166 unwind label %189

166:                                              ; preds = %149
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %167, ptr align 8 %28, i64 32, i1 false), !tbaa.struct !24
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #7
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4Simd4ViewINS_9AllocatorEE6RegionERKNS_9RectangleIlEE(ptr dead_on_unwind writable sret(%"struct.Simd::View") align 8 %29, ptr noundef nonnull align 8 dereferenceable(41) %168, ptr noundef nonnull align 8 dereferenceable(32) %169)
          to label %170 unwind label %193

170:                                              ; preds = %166
  %171 = invoke noundef nonnull align 8 dereferenceable(41) ptr @_ZN4Simd4ViewINS_9AllocatorEE3RefEv(ptr noundef nonnull align 8 dereferenceable(41) %29)
          to label %172 unwind label %197

172:                                              ; preds = %170
  invoke void @_ZN4Simd13AlphaBlendingINS_9AllocatorEEEvRKNS_4ViewIT_EES6_RS4_(ptr noundef nonnull align 8 dereferenceable(41) %5, ptr noundef nonnull align 8 dereferenceable(41) %26, ptr noundef nonnull align 8 dereferenceable(41) %171)
          to label %173 unwind label %197

173:                                              ; preds = %172
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %29) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #7
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load i64, ptr %27, align 8, !tbaa !10
  %176 = udiv i64 %175, 4
  %177 = trunc i64 %176 to i32
  %178 = sub nsw i32 0, %177
  %179 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4Simd9RectangleIlE9AddBorderIiEERS1_T_(ptr noundef nonnull align 8 dereferenceable(32) %174, i32 noundef %178)
          to label %180 unwind label %202

180:                                              ; preds = %173
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %26) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @_ZN4Simd5PointIlED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #7
  ret i1 true

181:                                              ; preds = %145, %143
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %11, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %12, align 4
  br label %208

185:                                              ; preds = %146
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %11, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %12, align 4
  br label %207

189:                                              ; preds = %149
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %11, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  br label %206

193:                                              ; preds = %166
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %11, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %12, align 4
  br label %201

197:                                              ; preds = %172, %170
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %11, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %12, align 4
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %29) #7
  br label %201

201:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #7
  br label %206

202:                                              ; preds = %173
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  br label %206

206:                                              ; preds = %202, %201, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %207

207:                                              ; preds = %206, %185
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %26) #7
  br label %208

208:                                              ; preds = %207, %181
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %209

209:                                              ; preds = %208, %124
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @_ZN4Simd5PointIlED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %210

210:                                              ; preds = %209, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %211

211:                                              ; preds = %210, %101, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %212

212:                                              ; preds = %211, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #7
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %11, align 8
  %215 = load i32, ptr %12, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef) #2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIhEERT_mm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef) #2 align 2

declare void @_ZN4Test10FillRandomERN4Simd4ViewINS0_9AllocatorEEEhh(ptr noundef nonnull align 8 dereferenceable(41), i8 noundef zeroext, i8 noundef zeroext) #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 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 @_ZN4Simd13VectorProductINS_9AllocatorEEEvPKhS3_RNS_4ViewIT_EE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(41)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

; 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) #6

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK4Simd4ViewINS_9AllocatorEE6RegionERKNS_9RectangleIlEE(ptr dead_on_unwind noalias writable sret(%"struct.Simd::View") align 8, ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 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 = { 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 #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 = { "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEEE", !11, i64 0, !11, i64 8, !11, i64 16, !17, i64 24, !6, i64 32, !18, i64 40}
!17 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!16, !11, i64 8}
!20 = distinct !{!20, !13}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTSN4Simd5PointIlEE", !11, i64 0, !11, i64 8}
!23 = !{!22, !11, i64 8}
!24 = !{i64 0, i64 8, !10, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 8, !10}


; 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::Point" = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.Simd::Rectangle" = type { i64, i64, i64, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test16CreateBackgroundERN4Simd4ViewINS0_9AllocatorEEERNS0_9RectangleIlEE(ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.Simd::View", align 8
  %4 = alloca %"struct.Simd::Point", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"struct.Simd::View", align 8
  %9 = alloca %"struct.Simd::Rectangle", align 8
  %10 = alloca %"struct.Simd::View", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(41) %3)
  %11 = call noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef 36)
  %12 = call noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef 73)
  %13 = invoke noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
          to label %14 unwind label %16

14:                                               ; preds = %2
  invoke void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %3, i64 noundef 256, i64 noundef 256, i32 noundef 1, ptr noundef null, i64 noundef %13)
          to label %.preheader unwind label %16

15:                                               ; preds = %20
  invoke void @_ZN4Test10FillRandomERN4Simd4ViewINS0_9AllocatorEEEhh(ptr noundef nonnull align 8 dereferenceable(41) %0, i8 noundef zeroext 0, i8 noundef zeroext -128)
          to label %32 unwind label %16

16:                                               ; preds = %15, %14, %2
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %86

.preheader:                                       ; preds = %14, %20
  %.04253 = phi i64 [ %21, %20 ], [ 0, %14 ]
  %18 = sub nsw i64 128, %.04253
  %19 = call noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef %18)
  br label %22

20:                                               ; preds = %22
  %21 = add nuw nsw i64 %.04253, 1
  %exitcond55.not = icmp eq i64 %21, 256
  br i1 %exitcond55.not, label %15, label %.preheader, !llvm.loop !5

22:                                               ; preds = %.preheader, %22
  %.04352 = phi i64 [ 0, %.preheader ], [ %31, %22 ]
  %23 = sub nsw i64 128, %.04352
  %24 = call noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef %23)
  %25 = add i64 %24, %19
  %26 = icmp uge i64 %25, %11
  %27 = icmp ule i64 %25, %12
  %28 = and i1 %26, %27
  %29 = select i1 %28, i8 -64, i8 64
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIhEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %3, i64 noundef %.04352, i64 noundef %.04253)
  store i8 %29, ptr %30, align 1, !tbaa !7
  %31 = add nuw nsw i64 %.04352, 1
  %exitcond.not = icmp eq i64 %31, 256
  br i1 %exitcond.not, label %20, label %22, !llvm.loop !10

32:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %33 = load i64, ptr %0, align 8, !tbaa !11
  %34 = lshr i64 %33, 1
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load i64, ptr %35, align 8, !tbaa !17
  %37 = lshr i64 %36, 1
  invoke void @_ZN4Simd5PointIlEC2ImmEET_T0_(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %34, i64 noundef %37)
          to label %38 unwind label %42

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  store i8 -1, ptr %6, align 1, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %39 unwind label %44

39:                                               ; preds = %38
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %46

40:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #7
  %41 = invoke noundef i64 @_ZN4Simd9AllocatorIhE9AlignmentEv()
          to label %54 unwind label %71

42:                                               ; preds = %32
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %85

44:                                               ; preds = %38
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %84

46:                                               ; preds = %39, %46
  %.04154 = phi i64 [ 0, %39 ], [ %53, %46 ]
  %47 = mul nuw nsw i64 %.04154, 255
  %48 = lshr i64 %47, 6
  %49 = trunc nuw i64 %48 to i8
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04154) #7
  store i8 %49, ptr %50, align 1, !tbaa !7
  %51 = sub nuw nsw i64 255, %.04154
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %51) #7
  store i8 %49, ptr %52, align 1, !tbaa !7
  %53 = add nuw nsw i64 %.04154, 1
  %exitcond56.not = icmp eq i64 %53, 64
  br i1 %exitcond56.not, label %40, label %46, !llvm.loop !18

54:                                               ; preds = %40
  invoke void @_ZN4Simd4ViewINS_9AllocatorEEC2EmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %8, i64 noundef 256, i64 noundef 256, i32 noundef 1, ptr noundef null, i64 noundef %41)
          to label %55 unwind label %71

55:                                               ; preds = %54
  %56 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %57 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  invoke void @_ZN4Simd13VectorProductINS_9AllocatorEEEvPKhS3_RNS_4ViewIT_EE(ptr noundef %56, ptr noundef %57, ptr noundef nonnull align 8 dereferenceable(41) %8)
          to label %58 unwind label %73

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  %59 = load i64, ptr %4, align 8, !tbaa !19
  %60 = add i64 %59, -128
  %61 = getelementptr inbounds i8, ptr %4, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !21
  %63 = add i64 %62, -128
  %64 = add i64 %59, 128
  %65 = add i64 %62, 128
  call void @_ZN4Simd9RectangleIlEC2ImmmmEET_T0_T1_T2_(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %60, i64 noundef %63, i64 noundef %64, i64 noundef %65)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !22
  call void @_ZN4Simd9RectangleIlED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  invoke void @_ZNK4Simd4ViewINS_9AllocatorEE6RegionERKNS_9RectangleIlEE(ptr dead_on_unwind nonnull writable sret(%"struct.Simd::View") align 8 %10, ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %66 unwind label %75

66:                                               ; preds = %58
  %67 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN4Simd4ViewINS_9AllocatorEE3RefEv(ptr noundef nonnull align 8 dereferenceable(41) %10)
  invoke void @_ZN4Simd13AlphaBlendingINS_9AllocatorEEEvRKNS_4ViewIT_EES6_RS4_(ptr noundef nonnull align 8 dereferenceable(41) %3, ptr noundef nonnull align 8 dereferenceable(41) %8, ptr noundef nonnull align 8 dereferenceable(41) %67)
          to label %68 unwind label %77

68:                                               ; preds = %66
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  %69 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4Simd9RectangleIlE9AddBorderIiEERS1_T_(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef -32)
          to label %70 unwind label %80

70:                                               ; preds = %68
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN4Simd5PointIlED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  ret i1 true

71:                                               ; preds = %54, %40
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %83

73:                                               ; preds = %55
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %82

75:                                               ; preds = %58
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #7
  br label %79

79:                                               ; preds = %77, %75
  %.pn = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  br label %82

80:                                               ; preds = %68
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %82

82:                                               ; preds = %79, %80, %73
  %.pn45.pn = phi { ptr, i32 } [ %74, %73 ], [ %81, %80 ], [ %.pn, %79 ]
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %8) #7
  br label %83

83:                                               ; preds = %82, %71
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %82 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %84

84:                                               ; preds = %83, %44
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %83 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN4Simd5PointIlED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %85

85:                                               ; preds = %84, %42
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %84 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %86

86:                                               ; preds = %85, %16
  %.pn45.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn, %85 ], [ %17, %16 ]
  call void @_ZN4Simd4ViewINS_9AllocatorEED2Ev(ptr noundef nonnull align 8 dereferenceable(41) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn.pn
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd6SquareImEET_S1_(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIhEERT_mm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

declare void @_ZN4Test10FillRandomERN4Simd4ViewINS0_9AllocatorEEEhh(ptr noundef nonnull align 8 dereferenceable(41), i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 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 @_ZN4Simd13VectorProductINS_9AllocatorEEEvPKhS3_RNS_4ViewIT_EE(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress 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) #6

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK4Simd4ViewINS_9AllocatorEE6RegionERKNS_9RectangleIlEE(ptr dead_on_unwind noalias writable sret(%"struct.Simd::View") align 8, ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(41) ptr @_ZN4Simd4ViewINS_9AllocatorEE3RefEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass