; LLVM IR from ysyesilyurt/ComputerGraphics :: ForwardRenderingPipeline (Scene)

; 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.Color = type { double, double, double }
%class.Vec4 = type <{ double, double, double, double, i32, [4 x i8] }>

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #2

declare void @_ZNK5ColormiERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13rasterizeLineRSt6vectorIS_I5ColorSaIS0_EESaIS2_EER4Vec4S7_RS0_S8_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #5 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.Color, align 8
  %16 = alloca %class.Color, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Color, align 8
  %19 = alloca %class.Color, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.Color, align 8
  %22 = alloca %class.Color, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.Color, align 8
  %25 = alloca %class.Color, align 8
  %26 = alloca i32, align 4
  %27 = alloca %class.Color, align 8
  %28 = alloca %class.Color, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.Vec4, ptr %29, i32 0, i32 0
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.Vec4, ptr %32, i32 0, i32 0
  %34 = load double, ptr %33, align 8, !tbaa !9
  %35 = fsub double %31, %34
  store double %35, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.Vec4, ptr %36, i32 0, i32 1
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.Vec4, ptr %39, i32 0, i32 1
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = fsub double %38, %41
  store double %42, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %43 = load double, ptr %12, align 8, !tbaa !13
  %44 = call noundef double @_ZSt3absd(double noundef %43)
  %45 = load double, ptr %11, align 8, !tbaa !13
  %46 = call noundef double @_ZSt3absd(double noundef %45)
  %47 = fcmp ole double %44, %46
  br i1 %47, label %48, label %170

48:                                               ; preds = %5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.Vec4, ptr %49, i32 0, i32 0
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.Vec4, ptr %52, i32 0, i32 0
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fcmp olt double %51, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %48
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36) %57, ptr noundef nonnull align 8 dereferenceable(36) %58)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(24) %60)
  br label %61

61:                                               ; preds = %56, %48
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.Vec4, ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !14
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Vec4, ptr %65, i32 0, i32 1
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = fcmp olt double %64, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %61
  store i32 -1, ptr %14, align 4, !tbaa !15
  br label %70

70:                                               ; preds = %69, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.Vec4, ptr %71, i32 0, i32 1
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = fptosi double %73 to i32
  store i32 %74, ptr %17, align 4, !tbaa !15
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %75, i64 24, i1 false), !tbaa.struct !16
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.Vec4, ptr %76, i32 0, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !14
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.Vec4, ptr %79, i32 0, i32 1
  %81 = load double, ptr %80, align 8, !tbaa !14
  %82 = fsub double %78, %81
  %83 = load i32, ptr %14, align 4, !tbaa !15
  %84 = sitofp i32 %83 to double
  %85 = fmul double %84, 5.000000e-01
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.Vec4, ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.Vec4, ptr %89, i32 0, i32 0
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fsub double %88, %91
  %93 = call double @llvm.fmuladd.f64(double %85, double %92, double %82)
  %94 = fptosi double %93 to i32
  store i32 %94, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK5ColormiERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(24) %96)
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.Vec4, ptr %97, i32 0, i32 0
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.Vec4, ptr %100, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fsub double %99, %102
  call void @_ZNK5ColordvEd(ptr dead_on_unwind writable sret(%class.Color) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef %103)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %18, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.Vec4, ptr %104, i32 0, i32 0
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = fptosi double %106 to i32
  store i32 %107, ptr %20, align 4, !tbaa !15
  br label %108

108:                                              ; preds = %166, %70
  %109 = load i32, ptr %20, align 4, !tbaa !15
  %110 = sitofp i32 %109 to double
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.Vec4, ptr %111, i32 0, i32 0
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = fcmp ole double %110, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %169

116:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind writable sret(%class.Color) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %20, align 4, !tbaa !15
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #8
  %121 = load i32, ptr %17, align 4, !tbaa !15
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %123, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  %124 = load i32, ptr %13, align 4, !tbaa !15
  %125 = load i32, ptr %14, align 4, !tbaa !15
  %126 = mul nsw i32 %124, %125
  %127 = icmp slt i32 %126, 0
  br i1 %127, label %128, label %153

128:                                              ; preds = %116
  %129 = load i32, ptr %14, align 4, !tbaa !15
  %130 = load i32, ptr %17, align 4, !tbaa !15
  %131 = add nsw i32 %130, %129
  store i32 %131, ptr %17, align 4, !tbaa !15
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.Vec4, ptr %132, i32 0, i32 1
  %134 = load double, ptr %133, align 8, !tbaa !14
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.Vec4, ptr %135, i32 0, i32 1
  %137 = load double, ptr %136, align 8, !tbaa !14
  %138 = fsub double %134, %137
  %139 = load i32, ptr %14, align 4, !tbaa !15
  %140 = sitofp i32 %139 to double
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.Vec4, ptr %141, i32 0, i32 0
  %143 = load double, ptr %142, align 8, !tbaa !9
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.Vec4, ptr %144, i32 0, i32 0
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = fsub double %143, %146
  %148 = call double @llvm.fmuladd.f64(double %140, double %147, double %138)
  %149 = load i32, ptr %13, align 4, !tbaa !15
  %150 = sitofp i32 %149 to double
  %151 = fadd double %150, %148
  %152 = fptosi double %151 to i32
  store i32 %152, ptr %13, align 4, !tbaa !15
  br label %165

153:                                              ; preds = %116
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.Vec4, ptr %154, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !14
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %class.Vec4, ptr %157, i32 0, i32 1
  %159 = load double, ptr %158, align 8, !tbaa !14
  %160 = fsub double %156, %159
  %161 = load i32, ptr %13, align 4, !tbaa !15
  %162 = sitofp i32 %161 to double
  %163 = fadd double %162, %160
  %164 = fptosi double %163 to i32
  store i32 %164, ptr %13, align 4, !tbaa !15
  br label %165

165:                                              ; preds = %153, %128
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %22, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %20, align 4, !tbaa !15
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %20, align 4, !tbaa !15
  br label %108, !llvm.loop !17

169:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %299

170:                                              ; preds = %5
  %171 = load double, ptr %12, align 8, !tbaa !13
  %172 = call noundef double @_ZSt3absd(double noundef %171)
  %173 = load double, ptr %11, align 8, !tbaa !13
  %174 = call noundef double @_ZSt3absd(double noundef %173)
  %175 = fcmp ogt double %172, %174
  br i1 %175, label %176, label %298

176:                                              ; preds = %170
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %class.Vec4, ptr %177, i32 0, i32 1
  %179 = load double, ptr %178, align 8, !tbaa !14
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %class.Vec4, ptr %180, i32 0, i32 1
  %182 = load double, ptr %181, align 8, !tbaa !14
  %183 = fcmp olt double %179, %182
  br i1 %183, label %184, label %189

184:                                              ; preds = %176
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36) %185, ptr noundef nonnull align 8 dereferenceable(36) %186)
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 8 dereferenceable(24) %188)
  br label %189

189:                                              ; preds = %184, %176
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %class.Vec4, ptr %190, i32 0, i32 0
  %192 = load double, ptr %191, align 8, !tbaa !9
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %class.Vec4, ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !9
  %196 = fcmp olt double %192, %195
  br i1 %196, label %197, label %198

197:                                              ; preds = %189
  store i32 -1, ptr %14, align 4, !tbaa !15
  br label %198

198:                                              ; preds = %197, %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %class.Vec4, ptr %199, i32 0, i32 0
  %201 = load double, ptr %200, align 8, !tbaa !9
  %202 = fptosi double %201 to i32
  store i32 %202, ptr %23, align 4, !tbaa !15
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %203, i64 24, i1 false), !tbaa.struct !16
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %class.Vec4, ptr %204, i32 0, i32 0
  %206 = load double, ptr %205, align 8, !tbaa !9
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %class.Vec4, ptr %207, i32 0, i32 0
  %209 = load double, ptr %208, align 8, !tbaa !9
  %210 = fsub double %206, %209
  %211 = load i32, ptr %14, align 4, !tbaa !15
  %212 = sitofp i32 %211 to double
  %213 = fmul double %212, 5.000000e-01
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.Vec4, ptr %214, i32 0, i32 1
  %216 = load double, ptr %215, align 8, !tbaa !14
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %class.Vec4, ptr %217, i32 0, i32 1
  %219 = load double, ptr %218, align 8, !tbaa !14
  %220 = fsub double %216, %219
  %221 = call double @llvm.fmuladd.f64(double %213, double %220, double %210)
  %222 = fptosi double %221 to i32
  store i32 %222, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK5ColormiERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 8 dereferenceable(24) %224)
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = getelementptr inbounds %class.Vec4, ptr %225, i32 0, i32 1
  %227 = load double, ptr %226, align 8, !tbaa !14
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %class.Vec4, ptr %228, i32 0, i32 1
  %230 = load double, ptr %229, align 8, !tbaa !14
  %231 = fsub double %227, %230
  call void @_ZNK5ColordvEd(ptr dead_on_unwind writable sret(%class.Color) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25, double noundef %231)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %class.Vec4, ptr %232, i32 0, i32 1
  %234 = load double, ptr %233, align 8, !tbaa !14
  %235 = fptosi double %234 to i32
  store i32 %235, ptr %26, align 4, !tbaa !15
  br label %236

236:                                              ; preds = %294, %198
  %237 = load i32, ptr %26, align 4, !tbaa !15
  %238 = sitofp i32 %237 to double
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  %240 = getelementptr inbounds %class.Vec4, ptr %239, i32 0, i32 1
  %241 = load double, ptr %240, align 8, !tbaa !14
  %242 = fcmp ole double %238, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %297

244:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind writable sret(%class.Color) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = load i32, ptr %23, align 4, !tbaa !15
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef %247) #8
  %249 = load i32, ptr %26, align 4, !tbaa !15
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %250) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %251, ptr align 8 %27, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  %252 = load i32, ptr %13, align 4, !tbaa !15
  %253 = load i32, ptr %14, align 4, !tbaa !15
  %254 = mul nsw i32 %252, %253
  %255 = icmp sgt i32 %254, 0
  br i1 %255, label %256, label %281

256:                                              ; preds = %244
  %257 = load i32, ptr %14, align 4, !tbaa !15
  %258 = load i32, ptr %23, align 4, !tbaa !15
  %259 = add nsw i32 %258, %257
  store i32 %259, ptr %23, align 4, !tbaa !15
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.Vec4, ptr %260, i32 0, i32 0
  %262 = load double, ptr %261, align 8, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %class.Vec4, ptr %263, i32 0, i32 0
  %265 = load double, ptr %264, align 8, !tbaa !9
  %266 = fsub double %262, %265
  %267 = load i32, ptr %14, align 4, !tbaa !15
  %268 = sitofp i32 %267 to double
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = getelementptr inbounds %class.Vec4, ptr %269, i32 0, i32 1
  %271 = load double, ptr %270, align 8, !tbaa !14
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = getelementptr inbounds %class.Vec4, ptr %272, i32 0, i32 1
  %274 = load double, ptr %273, align 8, !tbaa !14
  %275 = fsub double %271, %274
  %276 = call double @llvm.fmuladd.f64(double %268, double %275, double %266)
  %277 = load i32, ptr %13, align 4, !tbaa !15
  %278 = sitofp i32 %277 to double
  %279 = fadd double %278, %276
  %280 = fptosi double %279 to i32
  store i32 %280, ptr %13, align 4, !tbaa !15
  br label %293

281:                                              ; preds = %244
  %282 = load ptr, ptr %8, align 8, !tbaa !5
  %283 = getelementptr inbounds %class.Vec4, ptr %282, i32 0, i32 0
  %284 = load double, ptr %283, align 8, !tbaa !9
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %class.Vec4, ptr %285, i32 0, i32 0
  %287 = load double, ptr %286, align 8, !tbaa !9
  %288 = fsub double %284, %287
  %289 = load i32, ptr %13, align 4, !tbaa !15
  %290 = sitofp i32 %289 to double
  %291 = fadd double %290, %288
  %292 = fptosi double %291 to i32
  store i32 %292, ptr %13, align 4, !tbaa !15
  br label %293

293:                                              ; preds = %281, %256
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %28, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %26, align 4, !tbaa !15
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %26, align 4, !tbaa !15
  br label %236, !llvm.loop !19

297:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %298

298:                                              ; preds = %297, %170
  br label %299

299:                                              ; preds = %298, %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  ret void
}

declare void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6

declare void @_ZNK5ColordvEd(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #3

declare void @_ZNK5Color5roundEv(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { 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 #8 = { 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, !11, i64 0}
!10 = !{!"_ZTS4Vec4", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!12, !12, i64 0}
!16 = !{i64 0, i64 8, !13, i64 8, i64 8, !13, i64 16, i64 8, !13}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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.Color = type { double, double, double }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #2

declare void @_ZNK5ColormiERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13rasterizeLineRSt6vectorIS_I5ColorSaIS0_EESaIS2_EER4Vec4S7_RS0_S8_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #5 {
  %6 = alloca %class.Color, align 8
  %7 = alloca %class.Color, align 8
  %8 = alloca %class.Color, align 8
  %9 = alloca %class.Color, align 8
  %10 = alloca %class.Color, align 8
  %11 = alloca %class.Color, align 8
  %12 = alloca %class.Color, align 8
  %13 = alloca %class.Color, align 8
  %14 = alloca %class.Color, align 8
  %15 = alloca %class.Color, align 8
  %16 = load double, ptr %2, align 8, !tbaa !5
  %17 = load double, ptr %1, align 8, !tbaa !5
  %18 = fsub double %16, %17
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !11
  %23 = fsub double %20, %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %24 = call noundef double @_ZSt3absd(double noundef %23)
  %25 = call noundef double @_ZSt3absd(double noundef %18)
  %26 = fcmp ugt double %24, %25
  br i1 %26, label %78, label %27

27:                                               ; preds = %5
  %28 = load double, ptr %2, align 8, !tbaa !5
  %29 = load double, ptr %1, align 8, !tbaa !5
  %30 = fcmp olt double %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %27
  call void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2)
  call void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.pre = load double, ptr %2, align 8, !tbaa !5
  %.pre108 = load double, ptr %1, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %31, %27
  %33 = phi double [ %.pre108, %31 ], [ %29, %27 ]
  %34 = phi double [ %.pre, %31 ], [ %28, %27 ]
  %35 = load double, ptr %19, align 8, !tbaa !11
  %36 = load double, ptr %21, align 8, !tbaa !11
  %37 = fcmp olt double %35, %36
  %.089 = select i1 %37, i32 -1, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !12
  %38 = sitofp i32 %.089 to double
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNK5ColormiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %39 = load double, ptr %2, align 8, !tbaa !5
  %40 = load double, ptr %1, align 8, !tbaa !5
  %41 = fsub double %39, %40
  call void @_ZNK5ColordvEd(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %41)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  %42 = load double, ptr %1, align 8, !tbaa !5
  %43 = fptosi double %42 to i32
  %44 = sitofp i32 %43 to double
  %45 = load double, ptr %2, align 8, !tbaa !5
  %46 = fcmp ult double %45, %44
  br i1 %46, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %32
  %47 = fmul double %38, 5.000000e-01
  %48 = fsub double %34, %33
  %49 = fsub double %36, %35
  %50 = call double @llvm.fmuladd.f64(double %47, double %48, double %49)
  %51 = fptosi double %36 to i32
  %52 = sext i32 %43 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %71
  %indvars.iv = phi i64 [ %52, %.lr.ph.preheader ], [ %indvars.iv.next, %71 ]
  %.09197.in = phi double [ %50, %.lr.ph.preheader ], [ %73, %71 ]
  %.08795 = phi i32 [ %51, %.lr.ph.preheader ], [ %.188, %71 ]
  %.09197 = fptosi double %.09197.in to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #8
  %54 = sext i32 %.08795 to i64
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %54) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  %56 = mul nsw i32 %.089, %.09197
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %67

58:                                               ; preds = %.lr.ph
  %59 = add nsw i32 %.08795, %.089
  %60 = load double, ptr %21, align 8, !tbaa !11
  %61 = load double, ptr %19, align 8, !tbaa !11
  %62 = fsub double %60, %61
  %63 = load double, ptr %2, align 8, !tbaa !5
  %64 = load double, ptr %1, align 8, !tbaa !5
  %65 = fsub double %63, %64
  %66 = call double @llvm.fmuladd.f64(double %38, double %65, double %62)
  br label %71

67:                                               ; preds = %.lr.ph
  %68 = load double, ptr %21, align 8, !tbaa !11
  %69 = load double, ptr %19, align 8, !tbaa !11
  %70 = fsub double %68, %69
  br label %71

71:                                               ; preds = %67, %58
  %.sink = phi double [ %70, %67 ], [ %66, %58 ]
  %.188 = phi i32 [ %.08795, %67 ], [ %59, %58 ]
  %72 = sitofp i32 %.09197 to double
  %73 = fadd double %.sink, %72
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %74 = trunc nsw i64 %indvars.iv.next to i32
  %75 = sitofp i32 %74 to double
  %76 = load double, ptr %2, align 8, !tbaa !5
  %77 = fcmp ult double %76, %75
  br i1 %77, label %.loopexit, label %.lr.ph, !llvm.loop !14

78:                                               ; preds = %5
  %79 = call noundef double @_ZSt3absd(double noundef %23)
  %80 = call noundef double @_ZSt3absd(double noundef %18)
  %81 = fcmp ogt double %79, %80
  br i1 %81, label %82, label %.loopexit

82:                                               ; preds = %78
  %83 = load double, ptr %19, align 8, !tbaa !11
  %84 = load double, ptr %21, align 8, !tbaa !11
  %85 = fcmp olt double %83, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  call void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2)
  call void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.pre109 = load double, ptr %21, align 8, !tbaa !11
  %.pre110 = load double, ptr %19, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %86, %82
  %88 = phi double [ %.pre110, %86 ], [ %83, %82 ]
  %89 = phi double [ %.pre109, %86 ], [ %84, %82 ]
  %90 = load double, ptr %2, align 8, !tbaa !5
  %91 = load double, ptr %1, align 8, !tbaa !5
  %92 = fcmp olt double %90, %91
  %.190 = select i1 %92, i32 -1, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !12
  %93 = sitofp i32 %.190 to double
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNK5ColormiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %94 = load double, ptr %19, align 8, !tbaa !11
  %95 = load double, ptr %21, align 8, !tbaa !11
  %96 = fsub double %94, %95
  call void @_ZNK5ColordvEd(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, double noundef %96)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %12, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  %97 = load double, ptr %21, align 8, !tbaa !11
  %98 = fptosi double %97 to i32
  %99 = sitofp i32 %98 to double
  %100 = load double, ptr %19, align 8, !tbaa !11
  %101 = fcmp ult double %100, %99
  br i1 %101, label %.loopexit, label %.lr.ph102.preheader

.lr.ph102.preheader:                              ; preds = %87
  %102 = fmul double %93, 5.000000e-01
  %103 = fsub double %89, %88
  %104 = fsub double %90, %91
  %105 = call double @llvm.fmuladd.f64(double %102, double %103, double %104)
  %106 = fptosi double %91 to i32
  %107 = sext i32 %98 to i64
  br label %.lr.ph102

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %126
  %indvars.iv105 = phi i64 [ %107, %.lr.ph102.preheader ], [ %indvars.iv.next106, %126 ]
  %.2101.in = phi double [ %105, %.lr.ph102.preheader ], [ %128, %126 ]
  %.08599 = phi i32 [ %106, %.lr.ph102.preheader ], [ %.1, %126 ]
  %.2101 = fptosi double %.2101.in to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %108 = sext i32 %.08599 to i64
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %108) #8
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %indvars.iv105) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(24) %14, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  %111 = mul nsw i32 %.190, %.2101
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %113, label %122

113:                                              ; preds = %.lr.ph102
  %114 = add nsw i32 %.08599, %.190
  %115 = load double, ptr %2, align 8, !tbaa !5
  %116 = load double, ptr %1, align 8, !tbaa !5
  %117 = fsub double %115, %116
  %118 = load double, ptr %21, align 8, !tbaa !11
  %119 = load double, ptr %19, align 8, !tbaa !11
  %120 = fsub double %118, %119
  %121 = call double @llvm.fmuladd.f64(double %93, double %120, double %117)
  br label %126

122:                                              ; preds = %.lr.ph102
  %123 = load double, ptr %2, align 8, !tbaa !5
  %124 = load double, ptr %1, align 8, !tbaa !5
  %125 = fsub double %123, %124
  br label %126

126:                                              ; preds = %122, %113
  %.sink113 = phi double [ %125, %122 ], [ %121, %113 ]
  %.1 = phi i32 [ %.08599, %122 ], [ %114, %113 ]
  %127 = sitofp i32 %.2101 to double
  %128 = fadd double %.sink113, %127
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %15, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  %indvars.iv.next106 = add nsw i64 %indvars.iv105, 1
  %129 = trunc nsw i64 %indvars.iv.next106 to i32
  %130 = sitofp i32 %129 to double
  %131 = load double, ptr %19, align 8, !tbaa !11
  %132 = fcmp ult double %131, %130
  br i1 %132, label %.loopexit, label %.lr.ph102, !llvm.loop !16

.loopexit:                                        ; preds = %71, %126, %32, %87, %78
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  ret void
}

declare void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapI4Vec4ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapI5ColorENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

declare void @_ZNK5ColordvEd(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #3

declare void @_ZNK5Color5roundEv(ptr dead_on_unwind writable sret(%class.Color) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind }

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

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


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