; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Graphics (ImageOperation)

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

%"class.imp::Vec4" = type { %"class.imp::Vec.7" }
%"class.imp::Vec.7" = type { %"class.imp::Object", [4 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::ImageSampler" = type <{ %"class.imp::Sampler.base", [2 x i8], %"class.std::shared_ptr", i32, [4 x i8], %"class.imp::Vec2", i8, [7 x i8] }>
%"class.imp::Sampler.base" = type <{ %"class.imp::Object", i32, i8, i8 }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec2" = type { %"class.imp::Vec" }
%"class.imp::Vec" = type { %"class.imp::Object", [2 x float] }
%"struct.imp::Conv2dOperation" = type { %"struct.imp::ImageOperation", %"class.std::shared_ptr", %"class.imp::Matrix3" }
%"struct.imp::ImageOperation" = type { %"class.imp::Object" }
%"class.imp::Matrix3" = type { %"class.imp::Matrix.base", [4 x i8] }
%"class.imp::Matrix.base" = type <{ %"class.imp::Object", [9 x float] }>

; 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 dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88)) #2

declare noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88)) #2

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

declare void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef, i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #1 align 2

declare void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8, ptr noundef nonnull align 8 dereferenceable(89), float noundef, float noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec4C2Ef(ptr noundef nonnull align 8 dereferenceable(40), float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.7") align 8, ptr noundef nonnull align 8 dereferenceable(40), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp4Vec4aSERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15Conv2dOperation5applyERKNS_4Vec2ERNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.imp::ImageSampler", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.imp::Vec4", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"class.imp::Vec4", align 8
  %22 = alloca float, align 4
  %23 = alloca %"class.imp::Vec.7", align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 3, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = sdiv i32 %26, 2
  store i32 %27, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sdiv i32 %28, 2
  store i32 %29, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #5
  %30 = getelementptr inbounds %"struct.imp::Conv2dOperation", ptr %25, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  invoke void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89) %11, ptr noundef %12, i32 noundef 1)
          to label %31 unwind label %38

31:                                               ; preds = %3
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #5
  invoke void @_ZN3imp4Vec4C2Ef(ptr noundef nonnull align 8 dereferenceable(40) %15, float noundef 0.000000e+00)
          to label %32 unwind label %42

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %127, %32
  %34 = load i32, ptr %16, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %46, label %37

37:                                               ; preds = %33
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %130

38:                                               ; preds = %3
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %13, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %157

42:                                               ; preds = %31
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %13, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %14, align 4
  br label %156

46:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %94, %46
  %48 = load i32, ptr %18, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %126

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %53 = load i32, ptr %16, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sub nsw i32 %53, %54
  %56 = sitofp i32 %55 to float
  %57 = getelementptr inbounds %"struct.imp::Conv2dOperation", ptr %25, i32 0, i32 1
  %58 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %57) #5
  %59 = invoke noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88) %58)
          to label %60 unwind label %97

60:                                               ; preds = %52
  %61 = sitofp i32 %59 to float
  %62 = fdiv float %56, %61
  store float %62, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = sub nsw i32 %63, %64
  %66 = sitofp i32 %65 to float
  %67 = getelementptr inbounds %"struct.imp::Conv2dOperation", ptr %25, i32 0, i32 1
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %67) #5
  %69 = invoke noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88) %68)
          to label %70 unwind label %101

70:                                               ; preds = %60
  %71 = sitofp i32 %69 to float
  %72 = fdiv float %66, %71
  store float %72, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %73, i32 noundef 0)
          to label %75 unwind label %105

75:                                               ; preds = %70
  %76 = load float, ptr %19, align 4, !tbaa !11
  %77 = fadd float %74, %76
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %78, i32 noundef 1)
          to label %80 unwind label %105

80:                                               ; preds = %75
  %81 = load float, ptr %20, align 4, !tbaa !11
  %82 = fadd float %79, %81
  invoke void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8 %21, ptr noundef nonnull align 8 dereferenceable(89) %11, float noundef %77, float noundef %82)
          to label %83 unwind label %105

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %84 = getelementptr inbounds %"struct.imp::Conv2dOperation", ptr %25, i32 0, i32 2
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60) %84, i32 noundef %85, i32 noundef %86)
          to label %88 unwind label %109

88:                                               ; preds = %83
  %89 = load float, ptr %87, align 4, !tbaa !11
  store float %89, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  %90 = load float, ptr %22, align 4, !tbaa !11
  invoke void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind writable sret(%"class.imp::Vec.7") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %21, float noundef %90)
          to label %91 unwind label %113

91:                                               ; preds = %88
  %92 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %93 unwind label %117

93:                                               ; preds = %91
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %18, align 4, !tbaa !9
  br label %47, !llvm.loop !13

97:                                               ; preds = %52
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %13, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %14, align 4
  br label %125

101:                                              ; preds = %60
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %13, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %14, align 4
  br label %124

105:                                              ; preds = %80, %75, %70
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %123

109:                                              ; preds = %83
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %13, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %14, align 4
  br label %122

113:                                              ; preds = %88
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  br label %121

117:                                              ; preds = %91
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %13, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %14, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #5
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  br label %122

122:                                              ; preds = %121, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  br label %123

123:                                              ; preds = %122, %105
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  br label %124

124:                                              ; preds = %123, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %125

125:                                              ; preds = %124, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %155

126:                                              ; preds = %51
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %16, align 4, !tbaa !9
  br label %33, !llvm.loop !15

130:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %145, %130
  %132 = load i32, ptr %24, align 4, !tbaa !9
  %133 = icmp slt i32 %132, 4
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %152

135:                                              ; preds = %131
  %136 = load i32, ptr %24, align 4, !tbaa !9
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %136)
          to label %138 unwind label %148

138:                                              ; preds = %135
  %139 = load float, ptr %137, align 4, !tbaa !11
  %140 = invoke noundef float @_ZSt3absf(float noundef %139)
          to label %141 unwind label %148

141:                                              ; preds = %138
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %142)
          to label %144 unwind label %148

144:                                              ; preds = %141
  store float %140, ptr %143, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %24, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %24, align 4, !tbaa !9
  br label %131, !llvm.loop !16

148:                                              ; preds = %141, %138, %135
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %13, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %155

152:                                              ; preds = %134
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp4Vec4aSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %153, ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void

155:                                              ; preds = %148, %125
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  br label %156

156:                                              ; preds = %155, %42
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #5
  br label %157

157:                                              ; preds = %156, %38
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %13, align 8
  %160 = load i32, ptr %14, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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 = { "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 = { 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 #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

%"class.imp::Vec4" = type { %"class.imp::Vec.7" }
%"class.imp::Vec.7" = type { %"class.imp::Object", [4 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::ImageSampler" = type <{ %"class.imp::Sampler.base", [2 x i8], %"class.std::shared_ptr", i32, [4 x i8], %"class.imp::Vec2", i8, [7 x i8] }>
%"class.imp::Sampler.base" = type <{ %"class.imp::Object", i32, i8, i8 }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec2" = type { %"class.imp::Vec" }
%"class.imp::Vec" = type { %"class.imp::Object", [2 x float] }

; 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 dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

declare noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

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

declare void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef, i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

declare void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8, ptr noundef nonnull align 8 dereferenceable(89), float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec4C2Ef(ptr noundef nonnull align 8 dereferenceable(40), float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.7") align 8, ptr noundef nonnull align 8 dereferenceable(40), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp4Vec4aSERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15Conv2dOperation5applyERKNS_4Vec2ERNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.imp::ImageSampler", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.imp::Vec4", align 8
  %7 = alloca %"class.imp::Vec4", align 8
  %8 = alloca %"class.imp::Vec.7", align 8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  invoke void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull %5, i32 noundef 1)
          to label %10 unwind label %16

10:                                               ; preds = %3
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  invoke void @_ZN3imp4Vec4C2Ef(ptr noundef nonnull align 8 dereferenceable(40) %6, float noundef 0.000000e+00)
          to label %.preheader40 unwind label %18

.preheader40:                                     ; preds = %10
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  br label %.preheader39

.preheader39:                                     ; preds = %.preheader40, %89
  %.03242 = phi i32 [ 0, %.preheader40 ], [ %92, %89 ]
  %12 = add nsw i32 %.03242, -1
  %13 = sitofp i32 %12 to float
  %14 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %15 = invoke noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88) %14)
          to label %37 unwind label %93

16:                                               ; preds = %3
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %104

18:                                               ; preds = %10
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %103

.preheader.preheader:                             ; preds = %89
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 0)
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = call noundef float @_ZSt3absf(float noundef %21)
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 0)
  store float %22, ptr %23, align 4, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 1)
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = call noundef float @_ZSt3absf(float noundef %25)
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 1)
  store float %26, ptr %27, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 2)
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call noundef float @_ZSt3absf(float noundef %29)
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 2)
  store float %30, ptr %31, align 4, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 3)
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = call noundef float @_ZSt3absf(float noundef %33)
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 3)
  store float %34, ptr %35, align 4, !tbaa !5
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp4Vec4aSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  ret void

37:                                               ; preds = %.preheader39
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %39 = invoke noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %40 unwind label %95

40:                                               ; preds = %37
  %41 = sitofp i32 %15 to float
  %42 = fdiv float %13, %41
  %43 = sitofp i32 %39 to float
  %44 = fdiv float -1.000000e+00, %43
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  %45 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %46 = fadd float %42, %45
  %47 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 1)
  %48 = fadd float %44, %47
  invoke void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %7, ptr noundef nonnull align 8 dereferenceable(89) %4, float noundef %46, float noundef %48)
          to label %49 unwind label %97

49:                                               ; preds = %40
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60) %11, i32 noundef %.03242, i32 noundef 0)
          to label %51 unwind label %99

51:                                               ; preds = %49
  %52 = load float, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.7") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %7, float noundef %52)
  %53 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  %54 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %55 = invoke noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88) %54)
          to label %56 unwind label %93

56:                                               ; preds = %51
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %58 = invoke noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88) %57)
          to label %59 unwind label %95

59:                                               ; preds = %56
  %60 = sitofp i32 %55 to float
  %61 = fdiv float %13, %60
  %62 = sitofp i32 %58 to float
  %63 = fdiv float 0.000000e+00, %62
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  %64 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %65 = fadd float %61, %64
  %66 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 1)
  %67 = fadd float %63, %66
  invoke void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %7, ptr noundef nonnull align 8 dereferenceable(89) %4, float noundef %65, float noundef %67)
          to label %68 unwind label %97

68:                                               ; preds = %59
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60) %11, i32 noundef %.03242, i32 noundef 1)
          to label %70 unwind label %99

70:                                               ; preds = %68
  %71 = load float, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.7") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %7, float noundef %71)
  %72 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  %73 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %74 = invoke noundef i32 @_ZNK3imp5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(88) %73)
          to label %75 unwind label %93

75:                                               ; preds = %70
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %77 = invoke noundef i32 @_ZNK3imp5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(88) %76)
          to label %78 unwind label %95

78:                                               ; preds = %75
  %79 = sitofp i32 %74 to float
  %80 = fdiv float %13, %79
  %81 = sitofp i32 %77 to float
  %82 = fdiv float 1.000000e+00, %81
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  %83 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %84 = fadd float %80, %83
  %85 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 1)
  %86 = fadd float %82, %85
  invoke void @_ZN3imp12ImageSampler3getEff(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %7, ptr noundef nonnull align 8 dereferenceable(89) %4, float noundef %84, float noundef %86)
          to label %87 unwind label %97

87:                                               ; preds = %78
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp6MatrixILi3ELi3EfEclEii(ptr noundef nonnull align 8 dereferenceable(60) %11, i32 noundef %.03242, i32 noundef 2)
          to label %89 unwind label %99

89:                                               ; preds = %87
  %90 = load float, ptr %88, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @_ZNK3imp3VecILi4EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.7") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %7, float noundef %90)
  %91 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  %92 = add nuw nsw i32 %.03242, 1
  %exitcond.not = icmp eq i32 %92, 3
  br i1 %exitcond.not, label %.preheader.preheader, label %.preheader39, !llvm.loop !9

93:                                               ; preds = %70, %51, %.preheader39
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %102

95:                                               ; preds = %75, %56, %37
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %102

97:                                               ; preds = %78, %59, %40
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %101

99:                                               ; preds = %87, %68, %49
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br label %101

101:                                              ; preds = %99, %97
  %.pn = phi { ptr, i32 } [ %100, %99 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  br label %102

102:                                              ; preds = %95, %101, %93
  %.pn.pn.pn = phi { ptr, i32 } [ %94, %93 ], [ %.pn, %101 ], [ %96, %95 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %103

103:                                              ; preds = %102, %18
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %102 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #5
  br label %104

104:                                              ; preds = %103, %16
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %103 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3imp3VecILi4EfEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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 = { "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 = { 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 #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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