; LLVM IR from libtcod/libtcod :: src/libtcod (color)

; 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.TCOD_ColorRGB = type { i8, i8, i8 }

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_color_set_HSV(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store float %1, ptr %6, align 4, !tbaa !9
  store float %2, ptr %7, align 4, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %15 = load float, ptr %7, align 4, !tbaa !9
  %16 = fcmp olt float %15, 0.000000e+00
  br i1 %16, label %17, label %18

17:                                               ; preds = %4
  br label %26

18:                                               ; preds = %4
  %19 = load float, ptr %7, align 4, !tbaa !9
  %20 = fcmp ogt float %19, 1.000000e+00
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  br label %24

22:                                               ; preds = %18
  %23 = load float, ptr %7, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %22, %21
  %25 = phi float [ 1.000000e+00, %21 ], [ %23, %22 ]
  br label %26

26:                                               ; preds = %24, %17
  %27 = phi float [ 0.000000e+00, %17 ], [ %25, %24 ]
  store float %27, ptr %7, align 4, !tbaa !9
  %28 = load float, ptr %8, align 4, !tbaa !9
  %29 = fcmp olt float %28, 0.000000e+00
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  br label %39

31:                                               ; preds = %26
  %32 = load float, ptr %8, align 4, !tbaa !9
  %33 = fcmp ogt float %32, 1.000000e+00
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  br label %37

35:                                               ; preds = %31
  %36 = load float, ptr %8, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %35, %34
  %38 = phi float [ 1.000000e+00, %34 ], [ %36, %35 ]
  br label %39

39:                                               ; preds = %37, %30
  %40 = phi float [ 0.000000e+00, %30 ], [ %38, %37 ]
  store float %40, ptr %8, align 4, !tbaa !9
  %41 = load float, ptr %7, align 4, !tbaa !9
  %42 = fcmp oeq float %41, 0.000000e+00
  br i1 %42, label %43, label %53

43:                                               ; preds = %39
  %44 = load float, ptr %8, align 4, !tbaa !9
  %45 = call float @llvm.fmuladd.f32(float %44, float 2.550000e+02, float 5.000000e-01)
  %46 = fptoui float %45 to i8
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %47, i32 0, i32 2
  store i8 %46, ptr %48, align 1, !tbaa !11
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %49, i32 0, i32 1
  store i8 %46, ptr %50, align 1, !tbaa !13
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %51, i32 0, i32 0
  store i8 %46, ptr %52, align 1, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %182

53:                                               ; preds = %39
  %54 = load float, ptr %6, align 4, !tbaa !9
  %55 = call float @fabsmodf(float noundef %54, float noundef 3.600000e+02)
  store float %55, ptr %6, align 4, !tbaa !9
  %56 = load float, ptr %6, align 4, !tbaa !9
  %57 = fdiv float %56, 6.000000e+01
  store float %57, ptr %6, align 4, !tbaa !9
  %58 = load float, ptr %6, align 4, !tbaa !9
  %59 = fpext float %58 to double
  %60 = call double @llvm.floor.f64(double %59)
  %61 = fptosi double %60 to i32
  store i32 %61, ptr %9, align 4, !tbaa !15
  %62 = load float, ptr %6, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !15
  %64 = sitofp i32 %63 to float
  %65 = fsub float %62, %64
  store float %65, ptr %10, align 4, !tbaa !9
  %66 = load float, ptr %8, align 4, !tbaa !9
  %67 = load float, ptr %7, align 4, !tbaa !9
  %68 = fsub float 1.000000e+00, %67
  %69 = fmul float %66, %68
  store float %69, ptr %11, align 4, !tbaa !9
  %70 = load float, ptr %8, align 4, !tbaa !9
  %71 = load float, ptr %7, align 4, !tbaa !9
  %72 = load float, ptr %10, align 4, !tbaa !9
  %73 = fneg float %71
  %74 = call float @llvm.fmuladd.f32(float %73, float %72, float 1.000000e+00)
  %75 = fmul float %70, %74
  store float %75, ptr %12, align 4, !tbaa !9
  %76 = load float, ptr %8, align 4, !tbaa !9
  %77 = load float, ptr %7, align 4, !tbaa !9
  %78 = load float, ptr %10, align 4, !tbaa !9
  %79 = fsub float 1.000000e+00, %78
  %80 = fneg float %77
  %81 = call float @llvm.fmuladd.f32(float %80, float %79, float 1.000000e+00)
  %82 = fmul float %76, %81
  store float %82, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !15
  switch i32 %83, label %84 [
    i32 0, label %85
    i32 1, label %101
    i32 2, label %117
    i32 3, label %133
    i32 4, label %149
    i32 5, label %165
  ]

84:                                               ; preds = %53
  br label %85

85:                                               ; preds = %84, %53
  %86 = load float, ptr %8, align 4, !tbaa !9
  %87 = call float @llvm.fmuladd.f32(float %86, float 2.550000e+02, float 5.000000e-01)
  %88 = fptoui float %87 to i8
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %89, i32 0, i32 0
  store i8 %88, ptr %90, align 1, !tbaa !14
  %91 = load float, ptr %13, align 4, !tbaa !9
  %92 = call float @llvm.fmuladd.f32(float %91, float 2.550000e+02, float 5.000000e-01)
  %93 = fptoui float %92 to i8
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %94, i32 0, i32 1
  store i8 %93, ptr %95, align 1, !tbaa !13
  %96 = load float, ptr %11, align 4, !tbaa !9
  %97 = call float @llvm.fmuladd.f32(float %96, float 2.550000e+02, float 5.000000e-01)
  %98 = fptoui float %97 to i8
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %99, i32 0, i32 2
  store i8 %98, ptr %100, align 1, !tbaa !11
  br label %181

101:                                              ; preds = %53
  %102 = load float, ptr %12, align 4, !tbaa !9
  %103 = call float @llvm.fmuladd.f32(float %102, float 2.550000e+02, float 5.000000e-01)
  %104 = fptoui float %103 to i8
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %105, i32 0, i32 0
  store i8 %104, ptr %106, align 1, !tbaa !14
  %107 = load float, ptr %8, align 4, !tbaa !9
  %108 = call float @llvm.fmuladd.f32(float %107, float 2.550000e+02, float 5.000000e-01)
  %109 = fptoui float %108 to i8
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %110, i32 0, i32 1
  store i8 %109, ptr %111, align 1, !tbaa !13
  %112 = load float, ptr %11, align 4, !tbaa !9
  %113 = call float @llvm.fmuladd.f32(float %112, float 2.550000e+02, float 5.000000e-01)
  %114 = fptoui float %113 to i8
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %115, i32 0, i32 2
  store i8 %114, ptr %116, align 1, !tbaa !11
  br label %181

117:                                              ; preds = %53
  %118 = load float, ptr %11, align 4, !tbaa !9
  %119 = call float @llvm.fmuladd.f32(float %118, float 2.550000e+02, float 5.000000e-01)
  %120 = fptoui float %119 to i8
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %121, i32 0, i32 0
  store i8 %120, ptr %122, align 1, !tbaa !14
  %123 = load float, ptr %8, align 4, !tbaa !9
  %124 = call float @llvm.fmuladd.f32(float %123, float 2.550000e+02, float 5.000000e-01)
  %125 = fptoui float %124 to i8
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %126, i32 0, i32 1
  store i8 %125, ptr %127, align 1, !tbaa !13
  %128 = load float, ptr %13, align 4, !tbaa !9
  %129 = call float @llvm.fmuladd.f32(float %128, float 2.550000e+02, float 5.000000e-01)
  %130 = fptoui float %129 to i8
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %131, i32 0, i32 2
  store i8 %130, ptr %132, align 1, !tbaa !11
  br label %181

133:                                              ; preds = %53
  %134 = load float, ptr %11, align 4, !tbaa !9
  %135 = call float @llvm.fmuladd.f32(float %134, float 2.550000e+02, float 5.000000e-01)
  %136 = fptoui float %135 to i8
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %137, i32 0, i32 0
  store i8 %136, ptr %138, align 1, !tbaa !14
  %139 = load float, ptr %12, align 4, !tbaa !9
  %140 = call float @llvm.fmuladd.f32(float %139, float 2.550000e+02, float 5.000000e-01)
  %141 = fptoui float %140 to i8
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %142, i32 0, i32 1
  store i8 %141, ptr %143, align 1, !tbaa !13
  %144 = load float, ptr %8, align 4, !tbaa !9
  %145 = call float @llvm.fmuladd.f32(float %144, float 2.550000e+02, float 5.000000e-01)
  %146 = fptoui float %145 to i8
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %147, i32 0, i32 2
  store i8 %146, ptr %148, align 1, !tbaa !11
  br label %181

149:                                              ; preds = %53
  %150 = load float, ptr %13, align 4, !tbaa !9
  %151 = call float @llvm.fmuladd.f32(float %150, float 2.550000e+02, float 5.000000e-01)
  %152 = fptoui float %151 to i8
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %153, i32 0, i32 0
  store i8 %152, ptr %154, align 1, !tbaa !14
  %155 = load float, ptr %11, align 4, !tbaa !9
  %156 = call float @llvm.fmuladd.f32(float %155, float 2.550000e+02, float 5.000000e-01)
  %157 = fptoui float %156 to i8
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %158, i32 0, i32 1
  store i8 %157, ptr %159, align 1, !tbaa !13
  %160 = load float, ptr %8, align 4, !tbaa !9
  %161 = call float @llvm.fmuladd.f32(float %160, float 2.550000e+02, float 5.000000e-01)
  %162 = fptoui float %161 to i8
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %163, i32 0, i32 2
  store i8 %162, ptr %164, align 1, !tbaa !11
  br label %181

165:                                              ; preds = %53
  %166 = load float, ptr %8, align 4, !tbaa !9
  %167 = call float @llvm.fmuladd.f32(float %166, float 2.550000e+02, float 5.000000e-01)
  %168 = fptoui float %167 to i8
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %169, i32 0, i32 0
  store i8 %168, ptr %170, align 1, !tbaa !14
  %171 = load float, ptr %11, align 4, !tbaa !9
  %172 = call float @llvm.fmuladd.f32(float %171, float 2.550000e+02, float 5.000000e-01)
  %173 = fptoui float %172 to i8
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %174, i32 0, i32 1
  store i8 %173, ptr %175, align 1, !tbaa !13
  %176 = load float, ptr %12, align 4, !tbaa !9
  %177 = call float @llvm.fmuladd.f32(float %176, float 2.550000e+02, float 5.000000e-01)
  %178 = fptoui float %177 to i8
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.TCOD_ColorRGB, ptr %179, i32 0, i32 2
  store i8 %178, ptr %180, align 1, !tbaa !11
  br label %181

181:                                              ; preds = %165, %149, %133, %117, %101, %85
  store i32 0, ptr %14, align 4
  br label %182

182:                                              ; preds = %181, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %183 = load i32, ptr %14, align 4
  switch i32 %183, label %185 [
    i32 0, label %184
    i32 1, label %184
  ]

184:                                              ; preds = %182, %182
  ret void

185:                                              ; preds = %182
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare hidden float @fabsmodf(float noundef, float noundef) #0

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !7, i64 2}
!12 = !{!"TCOD_ColorRGB", !7, i64 0, !7, i64 1, !7, i64 2}
!13 = !{!12, !7, i64 1}
!14 = !{!12, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}


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

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_color_set_HSV(ptr nocapture noundef writeonly %0, float noundef %1, float noundef %2, float noundef %3) local_unnamed_addr #0 {
  %5 = fcmp olt float %2, 0.000000e+00
  %6 = fcmp ogt float %2, 1.000000e+00
  %7 = select i1 %6, float 1.000000e+00, float %2
  %8 = select i1 %5, float 0.000000e+00, float %7
  %9 = fcmp olt float %3, 0.000000e+00
  %10 = fcmp ogt float %3, 1.000000e+00
  %11 = select i1 %10, float 1.000000e+00, float %3
  %12 = select i1 %9, float 0.000000e+00, float %11
  %13 = fcmp oeq float %8, 0.000000e+00
  br i1 %13, label %14, label %19

14:                                               ; preds = %4
  %15 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %16 = fptoui float %15 to i8
  %17 = getelementptr inbounds i8, ptr %0, i64 2
  store i8 %16, ptr %17, align 1, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 1
  store i8 %16, ptr %18, align 1, !tbaa !9
  store i8 %16, ptr %0, align 1, !tbaa !10
  br label %78

19:                                               ; preds = %4
  %20 = tail call float @fabsmodf(float noundef %1, float noundef 3.600000e+02)
  %21 = fdiv float %20, 6.000000e+01
  %22 = tail call float @llvm.floor.f32(float %21)
  %23 = fptosi float %22 to i32
  %24 = sitofp i32 %23 to float
  %25 = fsub float %21, %24
  %26 = fsub float 1.000000e+00, %8
  %27 = fmul float %12, %26
  %28 = fneg float %8
  %29 = tail call float @llvm.fmuladd.f32(float %28, float %25, float 1.000000e+00)
  %30 = fmul float %12, %29
  %31 = fsub float 1.000000e+00, %25
  %32 = tail call float @llvm.fmuladd.f32(float %28, float %31, float 1.000000e+00)
  %33 = fmul float %12, %32
  %34 = getelementptr inbounds i8, ptr %0, i64 1
  %35 = getelementptr inbounds i8, ptr %0, i64 2
  switch i32 %23, label %36 [
    i32 5, label %71
    i32 1, label %43
    i32 2, label %50
    i32 3, label %57
    i32 4, label %64
  ]

36:                                               ; preds = %19
  %37 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %38 = fptoui float %37 to i8
  store i8 %38, ptr %0, align 1, !tbaa !10
  %39 = tail call float @llvm.fmuladd.f32(float %33, float 2.550000e+02, float 5.000000e-01)
  %40 = fptoui float %39 to i8
  store i8 %40, ptr %34, align 1, !tbaa !9
  %41 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %42 = fptoui float %41 to i8
  store i8 %42, ptr %35, align 1, !tbaa !5
  br label %78

43:                                               ; preds = %19
  %44 = tail call float @llvm.fmuladd.f32(float %30, float 2.550000e+02, float 5.000000e-01)
  %45 = fptoui float %44 to i8
  store i8 %45, ptr %0, align 1, !tbaa !10
  %46 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %47 = fptoui float %46 to i8
  store i8 %47, ptr %34, align 1, !tbaa !9
  %48 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %49 = fptoui float %48 to i8
  store i8 %49, ptr %35, align 1, !tbaa !5
  br label %78

50:                                               ; preds = %19
  %51 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %52 = fptoui float %51 to i8
  store i8 %52, ptr %0, align 1, !tbaa !10
  %53 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %54 = fptoui float %53 to i8
  store i8 %54, ptr %34, align 1, !tbaa !9
  %55 = tail call float @llvm.fmuladd.f32(float %33, float 2.550000e+02, float 5.000000e-01)
  %56 = fptoui float %55 to i8
  store i8 %56, ptr %35, align 1, !tbaa !5
  br label %78

57:                                               ; preds = %19
  %58 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %59 = fptoui float %58 to i8
  store i8 %59, ptr %0, align 1, !tbaa !10
  %60 = tail call float @llvm.fmuladd.f32(float %30, float 2.550000e+02, float 5.000000e-01)
  %61 = fptoui float %60 to i8
  store i8 %61, ptr %34, align 1, !tbaa !9
  %62 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %63 = fptoui float %62 to i8
  store i8 %63, ptr %35, align 1, !tbaa !5
  br label %78

64:                                               ; preds = %19
  %65 = tail call float @llvm.fmuladd.f32(float %33, float 2.550000e+02, float 5.000000e-01)
  %66 = fptoui float %65 to i8
  store i8 %66, ptr %0, align 1, !tbaa !10
  %67 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %68 = fptoui float %67 to i8
  store i8 %68, ptr %34, align 1, !tbaa !9
  %69 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %70 = fptoui float %69 to i8
  store i8 %70, ptr %35, align 1, !tbaa !5
  br label %78

71:                                               ; preds = %19
  %72 = tail call float @llvm.fmuladd.f32(float %12, float 2.550000e+02, float 5.000000e-01)
  %73 = fptoui float %72 to i8
  store i8 %73, ptr %0, align 1, !tbaa !10
  %74 = tail call float @llvm.fmuladd.f32(float %27, float 2.550000e+02, float 5.000000e-01)
  %75 = fptoui float %74 to i8
  store i8 %75, ptr %34, align 1, !tbaa !9
  %76 = tail call float @llvm.fmuladd.f32(float %30, float 2.550000e+02, float 5.000000e-01)
  %77 = fptoui float %76 to i8
  store i8 %77, ptr %35, align 1, !tbaa !5
  br label %78

78:                                               ; preds = %36, %43, %50, %57, %64, %71, %14
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden float @fabsmodf(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #2

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) }
attributes #2 = { 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, !7, i64 2}
!6 = !{!"TCOD_ColorRGB", !7, i64 0, !7, i64 1, !7, i64 2}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!6, !7, i64 1}
!10 = !{!6, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass