; 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 nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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) #4 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) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z2f_dddddd(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #4

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

46:                                               ; preds = %9
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.Vec4, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %15, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.Vec4, ptr %49, i32 0, i32 0
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.Vec4, ptr %52, i32 0, i32 0
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = load double, ptr %54, align 8, !tbaa !11
  br label %57

56:                                               ; preds = %9
  br label %57

57:                                               ; preds = %56, %46
  %58 = phi double [ %55, %46 ], [ 0.000000e+00, %56 ]
  %59 = fptosi double %58 to i32
  store i32 %59, ptr %19, align 4, !tbaa !9
  %60 = load i32, ptr %19, align 4, !tbaa !9
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 1
  %63 = icmp sle i32 %60, %62
  br i1 %63, label %64, label %66

64:                                               ; preds = %57
  %65 = load i32, ptr %19, align 4, !tbaa !9
  br label %69

66:                                               ; preds = %57
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = sub nsw i32 %67, 1
  br label %69

69:                                               ; preds = %66, %64
  %70 = phi i32 [ %65, %64 ], [ %68, %66 ]
  store i32 %70, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.Vec4, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.Vec4, ptr %73, i32 0, i32 1
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(8) %74)
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.Vec4, ptr %76, i32 0, i32 1
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %77)
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fcmp oge double %79, 0.000000e+00
  br i1 %80, label %81, label %91

81:                                               ; preds = %69
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.Vec4, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.Vec4, ptr %84, i32 0, i32 1
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %85)
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.Vec4, ptr %87, i32 0, i32 1
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %88)
  %90 = load double, ptr %89, align 8, !tbaa !11
  br label %92

91:                                               ; preds = %69
  br label %92

92:                                               ; preds = %91, %81
  %93 = phi double [ %90, %81 ], [ 0.000000e+00, %91 ]
  %94 = fptosi double %93 to i32
  store i32 %94, ptr %20, align 4, !tbaa !9
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = sub nsw i32 %96, 1
  %98 = icmp sle i32 %95, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %92
  %100 = load i32, ptr %20, align 4, !tbaa !9
  br label %104

101:                                              ; preds = %92
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 1
  br label %104

104:                                              ; preds = %101, %99
  %105 = phi i32 [ %100, %99 ], [ %103, %101 ]
  store i32 %105, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.Vec4, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.Vec4, ptr %108, i32 0, i32 0
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull align 8 dereferenceable(8) %109)
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.Vec4, ptr %111, i32 0, i32 0
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %112)
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = fcmp olt double %114, 0.000000e+00
  br i1 %115, label %116, label %117

116:                                              ; preds = %104
  br label %147

117:                                              ; preds = %104
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.Vec4, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.Vec4, ptr %120, i32 0, i32 0
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(8) %121)
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.Vec4, ptr %123, i32 0, i32 0
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull align 8 dereferenceable(8) %124)
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = sub nsw i32 %127, 1
  %129 = sitofp i32 %128 to double
  %130 = fcmp ogt double %126, %129
  br i1 %130, label %131, label %135

131:                                              ; preds = %117
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = sub nsw i32 %132, 1
  %134 = sitofp i32 %133 to double
  br label %145

135:                                              ; preds = %117
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.Vec4, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = getelementptr inbounds %class.Vec4, ptr %138, i32 0, i32 0
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull align 8 dereferenceable(8) %139)
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.Vec4, ptr %141, i32 0, i32 0
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull align 8 dereferenceable(8) %142)
  %144 = load double, ptr %143, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %135, %131
  %146 = phi double [ %134, %131 ], [ %144, %135 ]
  br label %147

147:                                              ; preds = %145, %116
  %148 = phi double [ 0.000000e+00, %116 ], [ %146, %145 ]
  %149 = fptosi double %148 to i32
  store i32 %149, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %class.Vec4, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds %class.Vec4, ptr %152, i32 0, i32 1
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull align 8 dereferenceable(8) %153)
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds %class.Vec4, ptr %155, i32 0, i32 1
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %156)
  %158 = load double, ptr %157, align 8, !tbaa !11
  %159 = fcmp olt double %158, 0.000000e+00
  br i1 %159, label %160, label %161

160:                                              ; preds = %147
  br label %191

161:                                              ; preds = %147
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.Vec4, ptr %162, i32 0, i32 1
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.Vec4, ptr %164, i32 0, i32 1
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(8) %165)
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = getelementptr inbounds %class.Vec4, ptr %167, i32 0, i32 1
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull align 8 dereferenceable(8) %168)
  %170 = load double, ptr %169, align 8, !tbaa !11
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = sub nsw i32 %171, 1
  %173 = sitofp i32 %172 to double
  %174 = fcmp ogt double %170, %173
  br i1 %174, label %175, label %179

175:                                              ; preds = %161
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = sub nsw i32 %176, 1
  %178 = sitofp i32 %177 to double
  br label %189

179:                                              ; preds = %161
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = getelementptr inbounds %class.Vec4, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.Vec4, ptr %182, i32 0, i32 1
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull align 8 dereferenceable(8) %183)
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds %class.Vec4, ptr %185, i32 0, i32 1
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull align 8 dereferenceable(8) %186)
  %188 = load double, ptr %187, align 8, !tbaa !11
  br label %189

189:                                              ; preds = %179, %175
  %190 = phi double [ %178, %175 ], [ %188, %179 ]
  br label %191

191:                                              ; preds = %189, %160
  %192 = phi double [ 0.000000e+00, %160 ], [ %190, %189 ]
  %193 = fptosi double %192 to i32
  store i32 %193, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %194 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %194, ptr %27, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %346, %191
  %196 = load i32, ptr %27, align 4, !tbaa !9
  %197 = load i32, ptr %22, align 4, !tbaa !9
  %198 = icmp sle i32 %196, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %195
  store i32 2, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %349

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %201 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %201, ptr %29, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %342, %200
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = icmp sle i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  store i32 5, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %345

207:                                              ; preds = %202
  %208 = load i32, ptr %29, align 4, !tbaa !9
  %209 = sitofp i32 %208 to double
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = sitofp i32 %210 to double
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = getelementptr inbounds %class.Vec4, ptr %212, i32 0, i32 0
  %214 = load double, ptr %213, align 8, !tbaa !13
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.Vec4, ptr %215, i32 0, i32 1
  %217 = load double, ptr %216, align 8, !tbaa !15
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = getelementptr inbounds %class.Vec4, ptr %218, i32 0, i32 0
  %220 = load double, ptr %219, align 8, !tbaa !13
  %221 = load ptr, ptr %16, align 8, !tbaa !5
  %222 = getelementptr inbounds %class.Vec4, ptr %221, i32 0, i32 1
  %223 = load double, ptr %222, align 8, !tbaa !15
  %224 = call noundef double @_Z2f_dddddd(double noundef %209, double noundef %211, double noundef %214, double noundef %217, double noundef %220, double noundef %223)
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = getelementptr inbounds %class.Vec4, ptr %225, i32 0, i32 0
  %227 = load double, ptr %226, align 8, !tbaa !13
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = getelementptr inbounds %class.Vec4, ptr %228, i32 0, i32 1
  %230 = load double, ptr %229, align 8, !tbaa !15
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  %232 = getelementptr inbounds %class.Vec4, ptr %231, i32 0, i32 0
  %233 = load double, ptr %232, align 8, !tbaa !13
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = getelementptr inbounds %class.Vec4, ptr %234, i32 0, i32 1
  %236 = load double, ptr %235, align 8, !tbaa !15
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = getelementptr inbounds %class.Vec4, ptr %237, i32 0, i32 0
  %239 = load double, ptr %238, align 8, !tbaa !13
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = getelementptr inbounds %class.Vec4, ptr %240, i32 0, i32 1
  %242 = load double, ptr %241, align 8, !tbaa !15
  %243 = call noundef double @_Z2f_dddddd(double noundef %227, double noundef %230, double noundef %233, double noundef %236, double noundef %239, double noundef %242)
  %244 = fdiv double %224, %243
  store double %244, ptr %23, align 8, !tbaa !11
  %245 = load i32, ptr %29, align 4, !tbaa !9
  %246 = sitofp i32 %245 to double
  %247 = load i32, ptr %27, align 4, !tbaa !9
  %248 = sitofp i32 %247 to double
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = getelementptr inbounds %class.Vec4, ptr %249, i32 0, i32 0
  %251 = load double, ptr %250, align 8, !tbaa !13
  %252 = load ptr, ptr %16, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.Vec4, ptr %252, i32 0, i32 1
  %254 = load double, ptr %253, align 8, !tbaa !15
  %255 = load ptr, ptr %14, align 8, !tbaa !5
  %256 = getelementptr inbounds %class.Vec4, ptr %255, i32 0, i32 0
  %257 = load double, ptr %256, align 8, !tbaa !13
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  %259 = getelementptr inbounds %class.Vec4, ptr %258, i32 0, i32 1
  %260 = load double, ptr %259, align 8, !tbaa !15
  %261 = call noundef double @_Z2f_dddddd(double noundef %246, double noundef %248, double noundef %251, double noundef %254, double noundef %257, double noundef %260)
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = getelementptr inbounds %class.Vec4, ptr %262, i32 0, i32 0
  %264 = load double, ptr %263, align 8, !tbaa !13
  %265 = load ptr, ptr %15, align 8, !tbaa !5
  %266 = getelementptr inbounds %class.Vec4, ptr %265, i32 0, i32 1
  %267 = load double, ptr %266, align 8, !tbaa !15
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = getelementptr inbounds %class.Vec4, ptr %268, i32 0, i32 0
  %270 = load double, ptr %269, align 8, !tbaa !13
  %271 = load ptr, ptr %16, align 8, !tbaa !5
  %272 = getelementptr inbounds %class.Vec4, ptr %271, i32 0, i32 1
  %273 = load double, ptr %272, align 8, !tbaa !15
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds %class.Vec4, ptr %274, i32 0, i32 0
  %276 = load double, ptr %275, align 8, !tbaa !13
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = getelementptr inbounds %class.Vec4, ptr %277, i32 0, i32 1
  %279 = load double, ptr %278, align 8, !tbaa !15
  %280 = call noundef double @_Z2f_dddddd(double noundef %264, double noundef %267, double noundef %270, double noundef %273, double noundef %276, double noundef %279)
  %281 = fdiv double %261, %280
  store double %281, ptr %24, align 8, !tbaa !11
  %282 = load i32, ptr %29, align 4, !tbaa !9
  %283 = sitofp i32 %282 to double
  %284 = load i32, ptr %27, align 4, !tbaa !9
  %285 = sitofp i32 %284 to double
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  %287 = getelementptr inbounds %class.Vec4, ptr %286, i32 0, i32 0
  %288 = load double, ptr %287, align 8, !tbaa !13
  %289 = load ptr, ptr %14, align 8, !tbaa !5
  %290 = getelementptr inbounds %class.Vec4, ptr %289, i32 0, i32 1
  %291 = load double, ptr %290, align 8, !tbaa !15
  %292 = load ptr, ptr %15, align 8, !tbaa !5
  %293 = getelementptr inbounds %class.Vec4, ptr %292, i32 0, i32 0
  %294 = load double, ptr %293, align 8, !tbaa !13
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = getelementptr inbounds %class.Vec4, ptr %295, i32 0, i32 1
  %297 = load double, ptr %296, align 8, !tbaa !15
  %298 = call noundef double @_Z2f_dddddd(double noundef %283, double noundef %285, double noundef %288, double noundef %291, double noundef %294, double noundef %297)
  %299 = load ptr, ptr %16, align 8, !tbaa !5
  %300 = getelementptr inbounds %class.Vec4, ptr %299, i32 0, i32 0
  %301 = load double, ptr %300, align 8, !tbaa !13
  %302 = load ptr, ptr %16, align 8, !tbaa !5
  %303 = getelementptr inbounds %class.Vec4, ptr %302, i32 0, i32 1
  %304 = load double, ptr %303, align 8, !tbaa !15
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = getelementptr inbounds %class.Vec4, ptr %305, i32 0, i32 0
  %307 = load double, ptr %306, align 8, !tbaa !13
  %308 = load ptr, ptr %14, align 8, !tbaa !5
  %309 = getelementptr inbounds %class.Vec4, ptr %308, i32 0, i32 1
  %310 = load double, ptr %309, align 8, !tbaa !15
  %311 = load ptr, ptr %15, align 8, !tbaa !5
  %312 = getelementptr inbounds %class.Vec4, ptr %311, i32 0, i32 0
  %313 = load double, ptr %312, align 8, !tbaa !13
  %314 = load ptr, ptr %15, align 8, !tbaa !5
  %315 = getelementptr inbounds %class.Vec4, ptr %314, i32 0, i32 1
  %316 = load double, ptr %315, align 8, !tbaa !15
  %317 = call noundef double @_Z2f_dddddd(double noundef %301, double noundef %304, double noundef %307, double noundef %310, double noundef %313, double noundef %316)
  %318 = fdiv double %298, %317
  store double %318, ptr %25, align 8, !tbaa !11
  %319 = load double, ptr %23, align 8, !tbaa !11
  %320 = fcmp oge double %319, 0.000000e+00
  br i1 %320, label %321, label %341

321:                                              ; preds = %207
  %322 = load double, ptr %24, align 8, !tbaa !11
  %323 = fcmp oge double %322, 0.000000e+00
  br i1 %323, label %324, label %341

324:                                              ; preds = %321
  %325 = load double, ptr %25, align 8, !tbaa !11
  %326 = fcmp oge double %325, 0.000000e+00
  br i1 %326, label %327, label %341

327:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = load double, ptr %23, align 8, !tbaa !11
  call void @_ZNK5ColormlEd(ptr dead_on_unwind writable sret(%class.Color) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %328, double noundef %329)
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #6
  %330 = load ptr, ptr %12, align 8, !tbaa !5
  %331 = load double, ptr %24, align 8, !tbaa !11
  call void @_ZNK5ColormlEd(ptr dead_on_unwind writable sret(%class.Color) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %330, double noundef %331)
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  %332 = load ptr, ptr %13, align 8, !tbaa !5
  %333 = load double, ptr %25, align 8, !tbaa !11
  call void @_ZNK5ColormlEd(ptr dead_on_unwind writable sret(%class.Color) align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %332, double noundef %333)
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind writable sret(%class.Color) align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %30, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #6
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind writable sret(%class.Color) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %26)
  %334 = load ptr, ptr %10, align 8, !tbaa !5
  %335 = load i32, ptr %29, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef %336) #6
  %338 = load i32, ptr %27, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef %339) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %340, ptr align 8 %35, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  br label %341

341:                                              ; preds = %327, %324, %321, %207
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %29, align 4, !tbaa !9
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %29, align 4, !tbaa !9
  br label %202, !llvm.loop !17

345:                                              ; preds = %206
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %27, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %27, align 4, !tbaa !9
  br label %195, !llvm.loop !19

349:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS4Vec4", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !10, i64 32}
!15 = !{!14, !12, i64 8}
!16 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11}
!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 nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

declare void @_ZNK5ColormlEd(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 @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 #4 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z2f_dddddd(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17rasterizeTriangleRSt6vectorIS_I5ColorSaIS0_EESaIS2_EEPKS0_S7_S7_R4Vec4S9_S9_ii(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #5 {
  %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 = alloca %class.Color, align 8
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fcmp ult double %19, 0.000000e+00
  br i1 %20, label %26, label %21

21:                                               ; preds = %9
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fptosi double %24 to i32
  br label %26

26:                                               ; preds = %9, %21
  %27 = phi i32 [ %25, %21 ], [ 0, %9 ]
  %28 = add i32 %7, -1
  %29 = tail call i32 @llvm.smin.i32(i32 %27, i32 %28)
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  %31 = getelementptr inbounds i8, ptr %5, i64 8
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %33 = getelementptr inbounds i8, ptr %6, i64 8
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = fcmp ult double %35, 0.000000e+00
  br i1 %36, label %42, label %37

37:                                               ; preds = %26
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = fptosi double %40 to i32
  br label %42

42:                                               ; preds = %26, %37
  %43 = phi i32 [ %41, %37 ], [ 0, %26 ]
  %44 = add i32 %8, -1
  %45 = tail call i32 @llvm.smin.i32(i32 %43, i32 %44)
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = fcmp olt double %48, 0.000000e+00
  br i1 %49, label %60, label %50

50:                                               ; preds = %42
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = sitofp i32 %28 to double
  %55 = fcmp ogt double %53, %54
  br i1 %55, label %60, label %56

56:                                               ; preds = %50
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %59 = load double, ptr %58, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %50, %56, %42
  %61 = phi double [ 0.000000e+00, %42 ], [ %59, %56 ], [ %54, %50 ]
  %62 = fptosi double %61 to i32
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = fcmp olt double %65, 0.000000e+00
  br i1 %66, label %77, label %67

67:                                               ; preds = %60
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %70 = load double, ptr %69, align 8, !tbaa !5
  %71 = sitofp i32 %44 to double
  %72 = fcmp ogt double %70, %71
  br i1 %72, label %77, label %73

73:                                               ; preds = %67
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %76 = load double, ptr %75, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %67, %73, %60
  %78 = phi double [ 0.000000e+00, %60 ], [ %76, %73 ], [ %71, %67 ]
  %79 = fptosi double %78 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZN5ColorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not109 = icmp sgt i32 %45, %79
  %.not106107 = icmp sgt i32 %29, %62
  %or.cond118 = select i1 %.not109, i1 true, i1 %.not106107
  br i1 %or.cond118, label %._crit_edge111, label %.preheader.preheader

.preheader.preheader:                             ; preds = %77
  %80 = call i32 @llvm.smin.i32(i32 %27, i32 %28)
  %smin = sext i32 %80 to i64
  %81 = add i32 %80, %62
  %82 = add i32 %81, 1
  %83 = sub i32 %82, %29
  %84 = call i32 @llvm.smin.i32(i32 %43, i32 %44)
  %smin113 = sext i32 %84 to i64
  %85 = add i32 %84, %79
  %86 = add i32 %85, 1
  %87 = sub i32 %86, %45
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv114 = phi i64 [ %smin113, %.preheader.preheader ], [ %indvars.iv.next115, %._crit_edge ]
  %88 = trunc nsw i64 %indvars.iv114 to i32
  %89 = sitofp i32 %88 to double
  br label %90

._crit_edge111:                                   ; preds = %._crit_edge, %77
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  ret void

._crit_edge:                                      ; preds = %143
  %indvars.iv.next115 = add nsw i64 %indvars.iv114, 1
  %lftr.wideiv116 = trunc i64 %indvars.iv.next115 to i32
  %exitcond117.not = icmp eq i32 %87, %lftr.wideiv116
  br i1 %exitcond117.not, label %._crit_edge111, label %.preheader, !llvm.loop !9

90:                                               ; preds = %.preheader, %143
  %indvars.iv = phi i64 [ %smin, %.preheader ], [ %indvars.iv.next, %143 ]
  %91 = trunc nsw i64 %indvars.iv to i32
  %92 = sitofp i32 %91 to double
  %93 = load double, ptr %5, align 8, !tbaa !11
  %94 = load double, ptr %31, align 8, !tbaa !14
  %95 = load double, ptr %6, align 8, !tbaa !11
  %96 = load double, ptr %33, align 8, !tbaa !14
  %97 = call noundef double @_Z2f_dddddd(double noundef %92, double noundef %89, double noundef %93, double noundef %94, double noundef %95, double noundef %96)
  %98 = load double, ptr %4, align 8, !tbaa !11
  %99 = load double, ptr %30, align 8, !tbaa !14
  %100 = load double, ptr %5, align 8, !tbaa !11
  %101 = load double, ptr %31, align 8, !tbaa !14
  %102 = load double, ptr %6, align 8, !tbaa !11
  %103 = load double, ptr %33, align 8, !tbaa !14
  %104 = call noundef double @_Z2f_dddddd(double noundef %98, double noundef %99, double noundef %100, double noundef %101, double noundef %102, double noundef %103)
  %105 = load double, ptr %6, align 8, !tbaa !11
  %106 = load double, ptr %33, align 8, !tbaa !14
  %107 = load double, ptr %4, align 8, !tbaa !11
  %108 = load double, ptr %30, align 8, !tbaa !14
  %109 = call noundef double @_Z2f_dddddd(double noundef %92, double noundef %89, double noundef %105, double noundef %106, double noundef %107, double noundef %108)
  %110 = load double, ptr %5, align 8, !tbaa !11
  %111 = load double, ptr %31, align 8, !tbaa !14
  %112 = load double, ptr %6, align 8, !tbaa !11
  %113 = load double, ptr %33, align 8, !tbaa !14
  %114 = load double, ptr %4, align 8, !tbaa !11
  %115 = load double, ptr %30, align 8, !tbaa !14
  %116 = call noundef double @_Z2f_dddddd(double noundef %110, double noundef %111, double noundef %112, double noundef %113, double noundef %114, double noundef %115)
  %117 = load double, ptr %4, align 8, !tbaa !11
  %118 = load double, ptr %30, align 8, !tbaa !14
  %119 = load double, ptr %5, align 8, !tbaa !11
  %120 = load double, ptr %31, align 8, !tbaa !14
  %121 = call noundef double @_Z2f_dddddd(double noundef %92, double noundef %89, double noundef %117, double noundef %118, double noundef %119, double noundef %120)
  %122 = load double, ptr %6, align 8, !tbaa !11
  %123 = load double, ptr %33, align 8, !tbaa !14
  %124 = load double, ptr %4, align 8, !tbaa !11
  %125 = load double, ptr %30, align 8, !tbaa !14
  %126 = load double, ptr %5, align 8, !tbaa !11
  %127 = load double, ptr %31, align 8, !tbaa !14
  %128 = call noundef double @_Z2f_dddddd(double noundef %122, double noundef %123, double noundef %124, double noundef %125, double noundef %126, double noundef %127)
  %129 = fdiv double %121, %128
  %130 = insertelement <2 x double> poison, double %97, i64 0
  %131 = insertelement <2 x double> %130, double %109, i64 1
  %132 = insertelement <2 x double> poison, double %104, i64 0
  %133 = insertelement <2 x double> %132, double %116, i64 1
  %134 = fdiv <2 x double> %131, %133
  %135 = fcmp oge <2 x double> %134, zeroinitializer
  %shift = shufflevector <2 x i1> %135, <2 x i1> poison, <2 x i32> <i32 1, i32 poison>
  %136 = and <2 x i1> %135, %shift
  %or.cond = extractelement <2 x i1> %136, i64 0
  %137 = fcmp oge double %129, 0.000000e+00
  %or.cond3 = and i1 %or.cond, %137
  br i1 %or.cond3, label %138, label %143

138:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  %139 = extractelement <2 x double> %134, i64 0
  call void @_ZNK5ColormlEd(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %139)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  %140 = extractelement <2 x double> %134, i64 1
  call void @_ZNK5ColormlEd(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %140)
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @_ZNK5ColormlEd(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %129)
  call void @_ZNK5ColorplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @_ZNK5Color5roundEv(ptr dead_on_unwind nonnull writable sret(%class.Color) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %10)
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #7
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %indvars.iv114) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %142, ptr noundef nonnull align 8 dereferenceable(24) %16, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %143

143:                                              ; preds = %90, %138
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %83, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %90, !llvm.loop !16
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4Vec4", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!16 = distinct !{!16, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass