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

; 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: nounwind uwtable
declare dso_local ptr @convertHSVtoRGB(double noundef, double noundef, double noundef) #1

; 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 @drawJulia(i32 noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i24, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 1 @BLACK, i64 3, i1 false)
  %23 = load i24, ptr %8, align 4
  %24 = call ptr @createPPMImage(i32 noundef %21, i32 noundef %22, i24 %23)
  store ptr %24, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store double 0xBFE6666666666666, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store double 2.701500e-01, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 255, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %174, %3
  %26 = load i32, ptr %14, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %29, label %177

29:                                               ; preds = %25
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %170, %29
  %31 = load i32, ptr %15, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %173

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %35 = load i32, ptr %14, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sdiv i32 %36, 2
  %38 = sub nsw i32 %35, %37
  %39 = sitofp i32 %38 to double
  %40 = fmul double 1.500000e+00, %39
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sitofp i32 %41 to double
  %43 = fmul double 5.000000e-01, %42
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sitofp i32 %44 to double
  %46 = fmul double %43, %45
  %47 = fdiv double %40, %46
  %48 = fadd double %47, 0.000000e+00
  store double %48, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %49 = load i32, ptr %15, align 4, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = sdiv i32 %50, 2
  %52 = sub nsw i32 %49, %51
  %53 = sitofp i32 %52 to double
  %54 = fmul double 1.000000e+00, %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = sitofp i32 %55 to double
  %57 = fmul double 5.000000e-01, %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sitofp i32 %58 to double
  %60 = fmul double %57, %59
  %61 = fdiv double %54, %60
  %62 = fadd double %61, 0.000000e+00
  store double %62, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 255, ptr %18, align 4, !tbaa !5
  store i32 255, ptr %18, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %90, %34
  %64 = load double, ptr %16, align 8, !tbaa !11
  %65 = load double, ptr %16, align 8, !tbaa !11
  %66 = load double, ptr %17, align 8, !tbaa !11
  %67 = load double, ptr %17, align 8, !tbaa !11
  %68 = fmul double %66, %67
  %69 = call double @llvm.fmuladd.f64(double %64, double %65, double %68)
  %70 = fcmp olt double %69, 4.000000e+00
  br i1 %70, label %71, label %74

71:                                               ; preds = %63
  %72 = load i32, ptr %18, align 4, !tbaa !5
  %73 = icmp ugt i32 %72, 0
  br label %74

74:                                               ; preds = %71, %63
  %75 = phi i1 [ false, %63 ], [ %73, %71 ]
  br i1 %75, label %76, label %93

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %77 = load double, ptr %16, align 8, !tbaa !11
  %78 = load double, ptr %16, align 8, !tbaa !11
  %79 = load double, ptr %17, align 8, !tbaa !11
  %80 = load double, ptr %17, align 8, !tbaa !11
  %81 = fmul double %79, %80
  %82 = fneg double %81
  %83 = call double @llvm.fmuladd.f64(double %77, double %78, double %82)
  %84 = fadd double %83, 0xBFE6666666666666
  store double %84, ptr %19, align 8, !tbaa !11
  %85 = load double, ptr %16, align 8, !tbaa !11
  %86 = fmul double 2.000000e+00, %85
  %87 = load double, ptr %17, align 8, !tbaa !11
  %88 = call double @llvm.fmuladd.f64(double %86, double %87, double 2.701500e-01)
  store double %88, ptr %17, align 8, !tbaa !11
  %89 = load double, ptr %19, align 8, !tbaa !11
  store double %89, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %90

90:                                               ; preds = %76
  %91 = load i32, ptr %18, align 4, !tbaa !5
  %92 = add i32 %91, -1
  store i32 %92, ptr %18, align 4, !tbaa !5
  br label %63, !llvm.loop !13

93:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %94 = load i32, ptr %18, align 4, !tbaa !5
  %95 = uitofp i32 %94 to double
  %96 = fdiv double %95, 2.550000e+02
  %97 = fmul double %96, 3.600000e+02
  %98 = load i32, ptr %18, align 4, !tbaa !5
  %99 = icmp ugt i32 %98, 1
  %100 = zext i1 %99 to i64
  %101 = select i1 %99, i32 1, i32 0
  %102 = sitofp i32 %101 to double
  %103 = call ptr @convertHSVtoRGB(double noundef %97, double noundef 1.000000e+00, double noundef %102)
  store ptr %103, ptr %20, align 8, !tbaa !9
  %104 = load ptr, ptr %20, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %104, i64 0
  %106 = load double, ptr %105, align 8, !tbaa !11
  %107 = fptoui double %106 to i8
  %108 = load ptr, ptr %7, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.PPMImage, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = load ptr, ptr %7, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.PPMImage, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !17
  %114 = load ptr, ptr %7, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.PPMImage, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !18
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = sub i32 %116, %117
  %119 = sub i32 %118, 1
  %120 = mul i32 %113, %119
  %121 = load i32, ptr %14, align 4, !tbaa !5
  %122 = add i32 %120, %121
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds %struct.PPMPixel, ptr %110, i64 %123
  %125 = getelementptr inbounds %struct.PPMPixel, ptr %124, i32 0, i32 0
  store i8 %107, ptr %125, align 1, !tbaa !19
  %126 = load ptr, ptr %20, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %126, i64 1
  %128 = load double, ptr %127, align 8, !tbaa !11
  %129 = fptoui double %128 to i8
  %130 = load ptr, ptr %7, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.PPMImage, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load ptr, ptr %7, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.PPMImage, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = load ptr, ptr %7, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.PPMImage, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !18
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = sub i32 %138, %139
  %141 = sub i32 %140, 1
  %142 = mul i32 %135, %141
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = add i32 %142, %143
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds %struct.PPMPixel, ptr %132, i64 %145
  %147 = getelementptr inbounds %struct.PPMPixel, ptr %146, i32 0, i32 1
  store i8 %129, ptr %147, align 1, !tbaa !21
  %148 = load ptr, ptr %20, align 8, !tbaa !9
  %149 = getelementptr inbounds double, ptr %148, i64 2
  %150 = load double, ptr %149, align 8, !tbaa !11
  %151 = fptoui double %150 to i8
  %152 = load ptr, ptr %7, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.PPMImage, ptr %152, i32 0, i32 2
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load ptr, ptr %7, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.PPMImage, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !17
  %158 = load ptr, ptr %7, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.PPMImage, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !18
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sub i32 %160, %161
  %163 = sub i32 %162, 1
  %164 = mul i32 %157, %163
  %165 = load i32, ptr %14, align 4, !tbaa !5
  %166 = add i32 %164, %165
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds %struct.PPMPixel, ptr %154, i64 %167
  %169 = getelementptr inbounds %struct.PPMPixel, ptr %168, i32 0, i32 2
  store i8 %151, ptr %169, align 1, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %170

170:                                              ; preds = %93
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %15, align 4, !tbaa !5
  br label %30, !llvm.loop !23

173:                                              ; preds = %30
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %14, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %14, align 4, !tbaa !5
  br label %25, !llvm.loop !24

177:                                              ; preds = %25
  %178 = load ptr, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret ptr %178
}

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 = !{!16, !6, i64 0}
!18 = !{!16, !6, i64 4}
!19 = !{!20, !7, i64 0}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!21 = !{!20, !7, i64 1}
!22 = !{!20, !7, i64 2}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !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: nounwind uwtable
declare dso_local ptr @convertHSVtoRGB(double noundef, double noundef, double noundef) 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 @drawJulia(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %.0.copyload = load i24, ptr @BLACK, align 1
  %4 = tail call ptr @createPPMImage(i32 noundef %0, i32 noundef %1, i24 %.0.copyload)
  %5 = icmp sgt i32 %0, 0
  br i1 %5, label %.preheader.lr.ph, label %._crit_edge64

.preheader.lr.ph:                                 ; preds = %3
  %6 = icmp sgt i32 %1, 0
  %.neg65 = lshr i32 %0, 1
  %7 = sitofp i32 %2 to double
  %8 = fmul double %7, 5.000000e-01
  %9 = uitofp nneg i32 %0 to double
  %10 = fmul double %8, %9
  %.neg56 = sdiv i32 %1, -2
  %11 = sitofp i32 %1 to double
  %12 = fmul double %8, %11
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  %14 = getelementptr inbounds i8, ptr %4, i64 4
  br i1 %6, label %.preheader.us, label %._crit_edge64

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge62.us
  %.063.us = phi i32 [ %66, %._crit_edge62.us ], [ 0, %.preheader.lr.ph ]
  %15 = sub nsw i32 %.063.us, %.neg65
  %16 = sitofp i32 %15 to double
  %17 = fmul double %16, 1.500000e+00
  %18 = fdiv double %17, %10
  %19 = fadd double %18, 0.000000e+00
  br label %20

20:                                               ; preds = %.preheader.us, %._crit_edge.us
  %.05060.us = phi i32 [ 0, %.preheader.us ], [ %53, %._crit_edge.us ]
  %21 = add i32 %.05060.us, %.neg56
  %22 = sitofp i32 %21 to double
  %23 = fdiv double %22, %12
  %24 = fadd double %23, 0.000000e+00
  %25 = fmul double %24, %24
  %26 = tail call double @llvm.fmuladd.f64(double %19, double %19, double %25)
  %27 = fcmp olt double %26, 4.000000e+00
  br i1 %27, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.lr.ph.us, %20
  %.051.lcssa.us = phi i32 [ 255, %20 ], [ %60, %.lr.ph.us ]
  %28 = uitofp i32 %.051.lcssa.us to double
  %29 = fdiv double %28, 2.550000e+02
  %30 = fmul double %29, 3.600000e+02
  %31 = icmp ugt i32 %.051.lcssa.us, 1
  %32 = uitofp i1 %31 to double
  %33 = tail call ptr @convertHSVtoRGB(double noundef %30, double noundef 1.000000e+00, double noundef %32)
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = fptoui double %34 to i8
  %36 = load ptr, ptr %13, align 8, !tbaa !9
  %37 = load i32, ptr %4, align 8, !tbaa !13
  %38 = load i32, ptr %14, align 4, !tbaa !14
  %39 = xor i32 %.05060.us, -1
  %40 = add i32 %38, %39
  %41 = mul i32 %40, %37
  %42 = add i32 %41, %.063.us
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds %struct.PPMPixel, ptr %36, i64 %43
  store i8 %35, ptr %44, align 1, !tbaa !15
  %45 = getelementptr inbounds i8, ptr %33, i64 8
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = fptoui double %46 to i8
  %48 = getelementptr inbounds %struct.PPMPixel, ptr %36, i64 %43, i32 1
  store i8 %47, ptr %48, align 1, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %33, i64 16
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = fptoui double %50 to i8
  %52 = getelementptr inbounds %struct.PPMPixel, ptr %36, i64 %43, i32 2
  store i8 %51, ptr %52, align 1, !tbaa !18
  %53 = add nuw nsw i32 %.05060.us, 1
  %exitcond.not = icmp eq i32 %53, %1
  br i1 %exitcond.not, label %._crit_edge62.us, label %20, !llvm.loop !19

.lr.ph.us:                                        ; preds = %20, %.lr.ph.us
  %54 = phi double [ %61, %.lr.ph.us ], [ %25, %20 ]
  %.05159.us = phi i32 [ %60, %.lr.ph.us ], [ 255, %20 ]
  %.05258.us = phi double [ %59, %.lr.ph.us ], [ %24, %20 ]
  %.05357.us = phi double [ %57, %.lr.ph.us ], [ %19, %20 ]
  %55 = fneg double %54
  %56 = tail call double @llvm.fmuladd.f64(double %.05357.us, double %.05357.us, double %55)
  %57 = fadd double %56, 0xBFE6666666666666
  %58 = fmul double %.05357.us, 2.000000e+00
  %59 = tail call double @llvm.fmuladd.f64(double %58, double %.05258.us, double 2.701500e-01)
  %60 = add nsw i32 %.05159.us, -1
  %61 = fmul double %59, %59
  %62 = tail call double @llvm.fmuladd.f64(double %57, double %57, double %61)
  %63 = fcmp olt double %62, 4.000000e+00
  %64 = icmp ne i32 %60, 0
  %65 = select i1 %63, i1 %64, i1 false
  br i1 %65, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !21

._crit_edge62.us:                                 ; preds = %._crit_edge.us
  %66 = add nuw nsw i32 %.063.us, 1
  %exitcond67.not = icmp eq i32 %66, %0
  br i1 %exitcond67.not, label %._crit_edge64, label %.preheader.us, !llvm.loop !22

._crit_edge64:                                    ; preds = %._crit_edge62.us, %.preheader.lr.ph, %3
  ret ptr %4
}

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 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"", !11, i64 0, !11, i64 4, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!16, !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!17 = !{!16, !7, i64 1}
!18 = !{!16, !7, i64 2}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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