; LLVM IR from arasgungore/filters-and-fractals :: main (drawMandelbrotSet)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.PPMPixel = type { i8, i8, i8 }
%struct.PPMImage = type { i32, i32, ptr }

@BLACK = external dso_local constant %struct.PPMPixel, align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @createPPMImage(i32 noundef, i32 noundef, i24) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @drawMandelbrotSet(i32 noundef %0, i32 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i24, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 1 @BLACK, i64 3, i1 false)
  %30 = load i24, ptr %6, align 4
  %31 = call ptr @createPPMImage(i32 noundef %28, i32 noundef %29, i24 %30)
  store ptr %31, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 200, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double -2.500000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 1.500000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double -2.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store double 2.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = uitofp i32 %32 to double
  %34 = fmul double 4.000000e+00, %33
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = uitofp i32 %35 to double
  %37 = fdiv double %34, %36
  %38 = fadd double -2.000000e+00, %37
  store double %38, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = uitofp i32 %39 to double
  %41 = fdiv double 4.000000e+00, %40
  store double %41, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %42 = load double, ptr %16, align 8, !tbaa !11
  %43 = fsub double %42, -2.000000e+00
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = uitofp i32 %44 to double
  %46 = fdiv double %43, %45
  store double %46, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 4.000000e+00, ptr %19, align 8, !tbaa !11
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %174, %2
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %51, label %177

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %52 = load double, ptr %16, align 8, !tbaa !11
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = uitofp i32 %53 to double
  %55 = load double, ptr %18, align 8, !tbaa !11
  %56 = fneg double %54
  %57 = call double @llvm.fmuladd.f64(double %56, double %55, double %52)
  store double %57, ptr %20, align 8, !tbaa !11
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %170, %51
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %62, label %173

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = uitofp i32 %63 to double
  %65 = load double, ptr %17, align 8, !tbaa !11
  %66 = call double @llvm.fmuladd.f64(double %64, double %65, double -2.500000e+00)
  store double %66, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %67 = load double, ptr %21, align 8, !tbaa !11
  store double %67, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %68 = load double, ptr %20, align 8, !tbaa !11
  store double %68, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %98, %62
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = icmp ult i32 %70, 200
  br i1 %71, label %72, label %101

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %73 = load double, ptr %22, align 8, !tbaa !11
  %74 = load double, ptr %22, align 8, !tbaa !11
  %75 = fmul double %73, %74
  store double %75, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %76 = load double, ptr %23, align 8, !tbaa !11
  %77 = load double, ptr %23, align 8, !tbaa !11
  %78 = fmul double %76, %77
  store double %78, ptr %25, align 8, !tbaa !11
  %79 = load double, ptr %24, align 8, !tbaa !11
  %80 = load double, ptr %25, align 8, !tbaa !11
  %81 = fadd double %79, %80
  %82 = fcmp ogt double %81, 4.000000e+00
  br i1 %82, label %83, label %84

83:                                               ; preds = %72
  store i32 8, ptr %26, align 4
  br label %95

84:                                               ; preds = %72
  %85 = load double, ptr %22, align 8, !tbaa !11
  %86 = fmul double 2.000000e+00, %85
  %87 = load double, ptr %23, align 8, !tbaa !11
  %88 = load double, ptr %20, align 8, !tbaa !11
  %89 = call double @llvm.fmuladd.f64(double %86, double %87, double %88)
  store double %89, ptr %23, align 8, !tbaa !11
  %90 = load double, ptr %24, align 8, !tbaa !11
  %91 = load double, ptr %25, align 8, !tbaa !11
  %92 = fsub double %90, %91
  %93 = load double, ptr %21, align 8, !tbaa !11
  %94 = fadd double %92, %93
  store double %94, ptr %22, align 8, !tbaa !11
  store i32 0, ptr %26, align 4
  br label %95

95:                                               ; preds = %84, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %96 = load i32, ptr %26, align 4
  switch i32 %96, label %179 [
    i32 0, label %97
    i32 8, label %101
  ]

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  br label %69, !llvm.loop !13

101:                                              ; preds = %95, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = uitofp i32 %102 to double
  %104 = fdiv double %103, 2.000000e+02
  %105 = fmul double %104, 2.550000e+02
  store double %105, ptr %27, align 8, !tbaa !11
  %106 = load double, ptr %27, align 8, !tbaa !11
  %107 = fcmp olt double %106, 1.270000e+02
  br i1 %107, label %108, label %135

108:                                              ; preds = %101
  %109 = load double, ptr %27, align 8, !tbaa !11
  %110 = fmul double 1.500000e+01, %109
  %111 = fdiv double %110, 8.000000e+00
  %112 = fadd double %111, 1.600000e+01
  %113 = fptoui double %112 to i8
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.PPMImage, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds %struct.PPMPixel, ptr %116, i64 %118
  %120 = getelementptr inbounds %struct.PPMPixel, ptr %119, i32 0, i32 0
  store i8 %113, ptr %120, align 1, !tbaa !17
  %121 = load ptr, ptr %5, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.PPMImage, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds %struct.PPMPixel, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.PPMPixel, ptr %126, i32 0, i32 1
  store i8 0, ptr %127, align 1, !tbaa !19
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.PPMImage, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds %struct.PPMPixel, ptr %130, i64 %132
  %134 = getelementptr inbounds %struct.PPMPixel, ptr %133, i32 0, i32 2
  store i8 0, ptr %134, align 1, !tbaa !20
  br label %167

135:                                              ; preds = %101
  %136 = load double, ptr %27, align 8, !tbaa !11
  %137 = fcmp olt double %136, 2.550000e+02
  br i1 %137, label %138, label %166

138:                                              ; preds = %135
  %139 = load ptr, ptr %5, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.PPMImage, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds %struct.PPMPixel, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.PPMPixel, ptr %144, i32 0, i32 0
  store i8 -1, ptr %145, align 1, !tbaa !17
  %146 = load double, ptr %27, align 8, !tbaa !11
  %147 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %146, double -2.550000e+02)
  %148 = fptoui double %147 to i8
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.PPMImage, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds %struct.PPMPixel, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.PPMPixel, ptr %154, i32 0, i32 1
  store i8 %148, ptr %155, align 1, !tbaa !19
  %156 = load double, ptr %27, align 8, !tbaa !11
  %157 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %156, double -2.550000e+02)
  %158 = fptoui double %157 to i8
  %159 = load ptr, ptr %5, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.PPMImage, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds %struct.PPMPixel, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct.PPMPixel, ptr %164, i32 0, i32 2
  store i8 %158, ptr %165, align 1, !tbaa !20
  br label %166

166:                                              ; preds = %138, %135
  br label %167

167:                                              ; preds = %166, %108
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = add i32 %168, 1
  store i32 %169, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %170

170:                                              ; preds = %167
  %171 = load i32, ptr %7, align 4, !tbaa !5
  %172 = add i32 %171, 1
  store i32 %172, ptr %7, align 4, !tbaa !5
  br label %58, !llvm.loop !21

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

174:                                              ; preds = %173
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = add i32 %175, 1
  store i32 %176, ptr %8, align 4, !tbaa !5
  br label %47, !llvm.loop !22

177:                                              ; preds = %47
  %178 = load ptr, ptr %5, align 8, !tbaa !9
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %178

179:                                              ; preds = %95
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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

%struct.PPMPixel = type { i8, i8, i8 }

@BLACK = external dso_local local_unnamed_addr constant %struct.PPMPixel, align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @createPPMImage(i32 noundef, i32 noundef, i24) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local ptr @drawMandelbrotSet(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %.0.copyload = load i24, ptr @BLACK, align 1
  %3 = tail call ptr @createPPMImage(i32 noundef %0, i32 noundef %1, i24 %.0.copyload)
  %4 = uitofp i32 %1 to double
  %5 = fmul double %4, 4.000000e+00
  %6 = uitofp i32 %0 to double
  %7 = fdiv double %5, %6
  %8 = fadd double %7, -2.000000e+00
  %9 = fdiv double 4.000000e+00, %6
  %10 = fadd double %8, 2.000000e+00
  %11 = fdiv double %10, %4
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %2
  %.not81 = icmp eq i32 %0, 0
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  br i1 %.not81, label %._crit_edge80, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph79, %._crit_edge.us
  %.05677.us = phi i32 [ %67, %._crit_edge.us ], [ 0, %.lr.ph79 ]
  %.06176.us = phi i32 [ %65, %._crit_edge.us ], [ 0, %.lr.ph79 ]
  %13 = uitofp i32 %.05677.us to double
  %14 = fneg double %13
  %15 = tail call double @llvm.fmuladd.f64(double %14, double %11, double %8)
  br label %16

16:                                               ; preds = %.lr.ph.us, %64
  %.075.us = phi i32 [ 0, %.lr.ph.us ], [ %66, %64 ]
  %.16274.us = phi i32 [ %.06176.us, %.lr.ph.us ], [ %65, %64 ]
  %17 = uitofp i32 %.075.us to double
  %18 = tail call double @llvm.fmuladd.f64(double %17, double %9, double -2.500000e+00)
  br label %19

19:                                               ; preds = %33, %16
  %.05773.us = phi i32 [ 0, %16 ], [ %38, %33 ]
  %.05872.us = phi double [ %15, %16 ], [ %35, %33 ]
  %.05971.us = phi double [ %18, %16 ], [ %37, %33 ]
  %20 = fmul double %.05971.us, %.05971.us
  %21 = fmul double %.05872.us, %.05872.us
  %22 = fadd double %20, %21
  %23 = fcmp ogt double %22, 4.000000e+00
  br i1 %23, label %.split.loop.exit, label %24

24:                                               ; preds = %19
  %25 = fmul double %.05971.us, 2.000000e+00
  %26 = tail call double @llvm.fmuladd.f64(double %25, double %.05872.us, double %15)
  %27 = fsub double %20, %21
  %28 = fadd double %18, %27
  %29 = fmul double %28, %28
  %30 = fmul double %26, %26
  %31 = fadd double %29, %30
  %32 = fcmp ogt double %31, 4.000000e+00
  br i1 %32, label %.split.loop.exit85, label %33

33:                                               ; preds = %24
  %34 = fmul double %28, 2.000000e+00
  %35 = tail call double @llvm.fmuladd.f64(double %34, double %26, double %15)
  %36 = fsub double %29, %30
  %37 = fadd double %18, %36
  %38 = add nuw nsw i32 %.05773.us, 2
  %exitcond.not.1 = icmp eq i32 %38, 200
  br i1 %exitcond.not.1, label %.split.loop.exit, label %19, !llvm.loop !5

.split.loop.exit85:                               ; preds = %24
  %39 = or disjoint i32 %.05773.us, 1
  br label %.split.loop.exit

.split.loop.exit:                                 ; preds = %19, %33, %.split.loop.exit85
  %.057.lcssa.us = phi i32 [ %39, %.split.loop.exit85 ], [ 200, %33 ], [ %.05773.us, %19 ]
  %40 = uitofp nneg i32 %.057.lcssa.us to double
  %41 = fdiv double %40, 2.000000e+02
  %42 = fmul double %41, 2.550000e+02
  %43 = fcmp olt double %42, 1.270000e+02
  br i1 %43, label %54, label %44

44:                                               ; preds = %.split.loop.exit
  %45 = fcmp olt double %42, 2.550000e+02
  br i1 %45, label %46, label %64

46:                                               ; preds = %44
  %47 = load ptr, ptr %12, align 8, !tbaa !7
  %48 = zext i32 %.16274.us to i64
  %49 = getelementptr inbounds %struct.PPMPixel, ptr %47, i64 %48
  store i8 -1, ptr %49, align 1, !tbaa !13
  %50 = tail call double @llvm.fmuladd.f64(double %42, double 2.000000e+00, double -2.550000e+02)
  %51 = fptoui double %50 to i8
  %52 = getelementptr inbounds %struct.PPMPixel, ptr %47, i64 %48, i32 1
  store i8 %51, ptr %52, align 1, !tbaa !15
  %53 = getelementptr inbounds %struct.PPMPixel, ptr %47, i64 %48, i32 2
  store i8 %51, ptr %53, align 1, !tbaa !16
  br label %64

54:                                               ; preds = %.split.loop.exit
  %55 = fmul double %42, 1.500000e+01
  %56 = fmul double %55, 1.250000e-01
  %57 = fadd double %56, 1.600000e+01
  %58 = fptoui double %57 to i8
  %59 = load ptr, ptr %12, align 8, !tbaa !7
  %60 = zext i32 %.16274.us to i64
  %61 = getelementptr inbounds %struct.PPMPixel, ptr %59, i64 %60
  store i8 %58, ptr %61, align 1, !tbaa !13
  %62 = getelementptr inbounds %struct.PPMPixel, ptr %59, i64 %60, i32 1
  store i8 0, ptr %62, align 1, !tbaa !15
  %63 = getelementptr inbounds %struct.PPMPixel, ptr %59, i64 %60, i32 2
  store i8 0, ptr %63, align 1, !tbaa !16
  br label %64

64:                                               ; preds = %54, %46, %44
  %65 = add i32 %.16274.us, 1
  %66 = add nuw i32 %.075.us, 1
  %exitcond83.not = icmp eq i32 %66, %0
  br i1 %exitcond83.not, label %._crit_edge.us, label %16, !llvm.loop !17

._crit_edge.us:                                   ; preds = %64
  %67 = add nuw i32 %.05677.us, 1
  %exitcond84.not = icmp eq i32 %67, %1
  br i1 %exitcond84.not, label %._crit_edge80, label %.lr.ph.us, !llvm.loop !18

._crit_edge80:                                    ; preds = %._crit_edge.us, %.lr.ph79, %2
  ret ptr %3
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass