; LLVM IR from ClecioJung/digital-control :: digitalControl (ifocControl)

; 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.IFOC = type { %struct.PI, %struct.PI, %struct.PI, %struct.FirstOrderObserver, i8, float, float, float, float, float, float, float }
%struct.PI = type { float, float, i8, %struct.Saturator, float, float, float }
%struct.Saturator = type { float, float }
%struct.FirstOrderObserver = type { float, float, float, float, float }

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

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

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

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local float @piControl(ptr noundef, float noundef, float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local float @observerProcess(ptr noundef, float noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @ifocControl(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store float %1, ptr %10, align 4, !tbaa !9
  store float %2, ptr %11, align 4, !tbaa !9
  store float %3, ptr %12, align 4, !tbaa !9
  store float %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.IFOC, ptr %31, i32 0, i32 5
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = call float @cosf(float noundef %33) #4
  store float %34, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.IFOC, ptr %35, i32 0, i32 5
  %37 = load float, ptr %36, align 4, !tbaa !11
  %38 = call float @sinf(float noundef %37) #4
  store float %38, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %39 = load float, ptr %12, align 4, !tbaa !9
  store float %39, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %40 = load float, ptr %12, align 4, !tbaa !9
  %41 = fneg float %40
  %42 = fpext float %41 to double
  %43 = load float, ptr %13, align 4, !tbaa !9
  %44 = fpext float %43 to double
  %45 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %44, double %42)
  %46 = call float @sqrtf(float noundef 3.000000e+00) #4
  %47 = fpext float %46 to double
  %48 = fdiv double %45, %47
  %49 = fptrunc double %48 to float
  store float %49, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %50 = load float, ptr %17, align 4, !tbaa !9
  %51 = load float, ptr %19, align 4, !tbaa !9
  %52 = load float, ptr %18, align 4, !tbaa !9
  %53 = load float, ptr %20, align 4, !tbaa !9
  %54 = fmul float %52, %53
  %55 = fneg float %54
  %56 = call float @llvm.fmuladd.f32(float %50, float %51, float %55)
  store float %56, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %57 = load float, ptr %18, align 4, !tbaa !9
  %58 = load float, ptr %19, align 4, !tbaa !9
  %59 = load float, ptr %17, align 4, !tbaa !9
  %60 = load float, ptr %20, align 4, !tbaa !9
  %61 = fmul float %59, %60
  %62 = call float @llvm.fmuladd.f32(float %57, float %58, float %61)
  store float %62, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.IFOC, ptr %63, i32 0, i32 3
  %65 = load float, ptr %22, align 4, !tbaa !9
  %66 = call float @observerProcess(ptr noundef %64, float noundef %65)
  store float %66, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %67 = load float, ptr %14, align 4, !tbaa !9
  %68 = fpext float %67 to double
  %69 = load float, ptr %23, align 4, !tbaa !9
  %70 = fpext float %69 to double
  %71 = call double @llvm.fabs.f64(double %70)
  %72 = fcmp ogt double %71, 1.000000e-02
  br i1 %72, label %73, label %82

73:                                               ; preds = %8
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.IFOC, ptr %74, i32 0, i32 9
  %76 = load float, ptr %75, align 4, !tbaa !17
  %77 = load float, ptr %21, align 4, !tbaa !9
  %78 = fmul float %76, %77
  %79 = load float, ptr %23, align 4, !tbaa !9
  %80 = fdiv float %78, %79
  %81 = fpext float %80 to double
  br label %83

82:                                               ; preds = %8
  br label %83

83:                                               ; preds = %82, %73
  %84 = phi double [ %81, %73 ], [ 0.000000e+00, %82 ]
  %85 = fadd double %68, %84
  %86 = fptrunc double %85 to float
  store float %86, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %87 = load float, ptr %10, align 4, !tbaa !9
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.IFOC, ptr %88, i32 0, i32 11
  %90 = load float, ptr %89, align 4, !tbaa !18
  %91 = load float, ptr %11, align 4, !tbaa !9
  %92 = fmul float %90, %91
  %93 = fdiv float %87, %92
  store float %93, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.IFOC, ptr %94, i32 0, i32 2
  %96 = load float, ptr %11, align 4, !tbaa !9
  %97 = load float, ptr %23, align 4, !tbaa !9
  %98 = call float @piControl(ptr noundef %95, float noundef %96, float noundef %97)
  store float %98, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store float 0.000000e+00, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store float 0.000000e+00, ptr %28, align 4, !tbaa !9
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.IFOC, ptr %99, i32 0, i32 4
  %101 = load i8, ptr %100, align 4, !tbaa !19, !range !20, !noundef !21
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %135

103:                                              ; preds = %83
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.IFOC, ptr %104, i32 0, i32 8
  %106 = load float, ptr %105, align 4, !tbaa !22
  %107 = load float, ptr %24, align 4, !tbaa !9
  %108 = load float, ptr %22, align 4, !tbaa !9
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.IFOC, ptr %109, i32 0, i32 7
  %111 = load float, ptr %110, align 4, !tbaa !23
  %112 = load float, ptr %14, align 4, !tbaa !9
  %113 = fmul float %111, %112
  %114 = load float, ptr %23, align 4, !tbaa !9
  %115 = fmul float %113, %114
  %116 = call float @llvm.fmuladd.f32(float %107, float %108, float %115)
  %117 = fmul float %106, %116
  store float %117, ptr %27, align 4, !tbaa !9
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.IFOC, ptr %118, i32 0, i32 8
  %120 = load float, ptr %119, align 4, !tbaa !22
  %121 = fneg float %120
  %122 = load float, ptr %24, align 4, !tbaa !9
  %123 = load float, ptr %21, align 4, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.IFOC, ptr %124, i32 0, i32 7
  %126 = load float, ptr %125, align 4, !tbaa !23
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.IFOC, ptr %127, i32 0, i32 9
  %129 = load float, ptr %128, align 4, !tbaa !17
  %130 = fmul float %126, %129
  %131 = load float, ptr %23, align 4, !tbaa !9
  %132 = fmul float %130, %131
  %133 = call float @llvm.fmuladd.f32(float %122, float %123, float %132)
  %134 = fmul float %121, %133
  store float %134, ptr %28, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %103, %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %136 = load float, ptr %27, align 4, !tbaa !9
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.IFOC, ptr %137, i32 0, i32 0
  %139 = load float, ptr %25, align 4, !tbaa !9
  %140 = load float, ptr %21, align 4, !tbaa !9
  %141 = call float @piControl(ptr noundef %138, float noundef %139, float noundef %140)
  %142 = fadd float %136, %141
  store float %142, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %143 = load float, ptr %28, align 4, !tbaa !9
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.IFOC, ptr %144, i32 0, i32 1
  %146 = load float, ptr %26, align 4, !tbaa !9
  %147 = load float, ptr %22, align 4, !tbaa !9
  %148 = call float @piControl(ptr noundef %145, float noundef %146, float noundef %147)
  %149 = fadd float %143, %148
  store float %149, ptr %30, align 4, !tbaa !9
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %160

152:                                              ; preds = %135
  %153 = load float, ptr %17, align 4, !tbaa !9
  %154 = load float, ptr %29, align 4, !tbaa !9
  %155 = load float, ptr %18, align 4, !tbaa !9
  %156 = load float, ptr %30, align 4, !tbaa !9
  %157 = fmul float %155, %156
  %158 = call float @llvm.fmuladd.f32(float %153, float %154, float %157)
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  store float %158, ptr %159, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %152, %135
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %172

163:                                              ; preds = %160
  %164 = load float, ptr %18, align 4, !tbaa !9
  %165 = fneg float %164
  %166 = load float, ptr %29, align 4, !tbaa !9
  %167 = load float, ptr %17, align 4, !tbaa !9
  %168 = load float, ptr %30, align 4, !tbaa !9
  %169 = fmul float %167, %168
  %170 = call float @llvm.fmuladd.f32(float %165, float %166, float %169)
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  store float %170, ptr %171, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %163, %160
  %173 = load float, ptr %24, align 4, !tbaa !9
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.IFOC, ptr %174, i32 0, i32 6
  %176 = load float, ptr %175, align 4, !tbaa !24
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.IFOC, ptr %177, i32 0, i32 5
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = call float @llvm.fmuladd.f32(float %173, float %176, float %179)
  store float %180, ptr %178, align 4, !tbaa !11
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.IFOC, ptr %181, i32 0, i32 5
  %183 = load float, ptr %182, align 4, !tbaa !11
  %184 = fpext float %183 to double
  %185 = fcmp oge double %184, 0x401921FB54442D18
  br i1 %185, label %186, label %193

186:                                              ; preds = %172
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.IFOC, ptr %187, i32 0, i32 5
  %189 = load float, ptr %188, align 4, !tbaa !11
  %190 = fpext float %189 to double
  %191 = fsub double %190, 0x401921FB54442D18
  %192 = fptrunc double %191 to float
  store float %192, ptr %188, align 4, !tbaa !11
  br label %206

193:                                              ; preds = %172
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.IFOC, ptr %194, i32 0, i32 5
  %196 = load float, ptr %195, align 4, !tbaa !11
  %197 = fcmp ole float %196, 0.000000e+00
  br i1 %197, label %198, label %205

198:                                              ; preds = %193
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.IFOC, ptr %199, i32 0, i32 5
  %201 = load float, ptr %200, align 4, !tbaa !11
  %202 = fpext float %201 to double
  %203 = fadd double %202, 0x401921FB54442D18
  %204 = fptrunc double %203 to float
  store float %204, ptr %200, align 4, !tbaa !11
  br label %205

205:                                              ; preds = %198, %193
  br label %206

206:                                              ; preds = %205, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret void
}

; Function Attrs: nounwind
declare float @cosf(float noundef) #2

; Function Attrs: nounwind
declare float @sinf(float noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "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 = { 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 #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 = !{!"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, !10, i64 120}
!12 = !{!"", !13, i64 0, !13, i64 32, !13, i64 64, !16, i64 96, !14, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!13 = !{!"", !10, i64 0, !10, i64 4, !14, i64 8, !15, i64 12, !10, i64 20, !10, i64 24, !10, i64 28}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!"", !10, i64 0, !10, i64 4}
!16 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!17 = !{!12, !10, i64 136}
!18 = !{!12, !10, i64 144}
!19 = !{!12, !14, i64 116}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !10, i64 132}
!23 = !{!12, !10, i64 128}
!24 = !{!12, !10, i64 124}


; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

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

; Function Attrs: nounwind uwtable
declare dso_local float @piControl(ptr noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local float @observerProcess(ptr noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @ifocControl(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, ptr noundef writeonly %6, ptr noundef writeonly %7) local_unnamed_addr #1 {
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = tail call float @cosf(float noundef %10) #4
  %12 = load float, ptr %9, align 4, !tbaa !5
  %13 = tail call float @sinf(float noundef %12) #4
  %14 = fneg float %3
  %15 = fpext float %14 to double
  %16 = fpext float %4 to double
  %17 = tail call double @llvm.fmuladd.f64(double %16, double -2.000000e+00, double %15)
  %18 = fdiv double %17, 0x3FFBB67AE0000000
  %19 = fptrunc double %18 to float
  %20 = fneg float %13
  %21 = insertelement <2 x float> poison, float %19, i64 0
  %22 = shufflevector <2 x float> %21, <2 x float> poison, <2 x i32> zeroinitializer
  %23 = insertelement <2 x float> poison, float %20, i64 0
  %24 = insertelement <2 x float> %23, float %11, i64 1
  %25 = fmul <2 x float> %22, %24
  %26 = insertelement <2 x float> poison, float %11, i64 0
  %27 = insertelement <2 x float> %26, float %13, i64 1
  %28 = insertelement <2 x float> poison, float %3, i64 0
  %29 = shufflevector <2 x float> %28, <2 x float> poison, <2 x i32> zeroinitializer
  %30 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %27, <2 x float> %29, <2 x float> %25)
  %31 = getelementptr inbounds i8, ptr %0, i64 96
  %32 = extractelement <2 x float> %30, i64 1
  %33 = tail call float @observerProcess(ptr noundef nonnull %31, float noundef %32)
  %34 = fpext float %5 to double
  %35 = tail call float @llvm.fabs.f32(float %33)
  %36 = fpext float %35 to double
  %37 = fcmp ogt double %36, 1.000000e-02
  br i1 %37, label %38, label %45

38:                                               ; preds = %8
  %39 = getelementptr inbounds i8, ptr %0, i64 136
  %40 = load float, ptr %39, align 4, !tbaa !14
  %41 = extractelement <2 x float> %30, i64 0
  %42 = fmul float %41, %40
  %43 = fdiv float %42, %33
  %44 = fpext float %43 to double
  br label %45

45:                                               ; preds = %8, %38
  %46 = phi double [ %44, %38 ], [ 0.000000e+00, %8 ]
  %47 = fadd double %46, %34
  %48 = fptrunc double %47 to float
  %49 = getelementptr inbounds i8, ptr %0, i64 144
  %50 = load float, ptr %49, align 4, !tbaa !15
  %51 = fmul float %50, %2
  %52 = fdiv float %1, %51
  %53 = getelementptr inbounds i8, ptr %0, i64 64
  %54 = tail call float @piControl(ptr noundef nonnull %53, float noundef %2, float noundef %33)
  %55 = getelementptr inbounds i8, ptr %0, i64 116
  %56 = load i8, ptr %55, align 4, !tbaa !16, !range !17, !noundef !18
  %57 = trunc nuw i8 %56 to i1
  br i1 %57, label %58, label %80

58:                                               ; preds = %45
  %59 = getelementptr inbounds i8, ptr %0, i64 132
  %60 = load float, ptr %59, align 4, !tbaa !19
  %61 = getelementptr inbounds i8, ptr %0, i64 128
  %62 = load float, ptr %61, align 4, !tbaa !20
  %63 = fneg float %60
  %64 = getelementptr inbounds i8, ptr %0, i64 136
  %65 = load float, ptr %64, align 4, !tbaa !14
  %66 = insertelement <2 x float> poison, float %62, i64 0
  %67 = shufflevector <2 x float> %66, <2 x float> poison, <2 x i32> zeroinitializer
  %68 = insertelement <2 x float> poison, float %65, i64 0
  %69 = insertelement <2 x float> %68, float %5, i64 1
  %70 = fmul <2 x float> %67, %69
  %71 = insertelement <2 x float> poison, float %33, i64 0
  %72 = shufflevector <2 x float> %71, <2 x float> poison, <2 x i32> zeroinitializer
  %73 = fmul <2 x float> %72, %70
  %74 = insertelement <2 x float> poison, float %48, i64 0
  %75 = shufflevector <2 x float> %74, <2 x float> poison, <2 x i32> zeroinitializer
  %76 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %75, <2 x float> %30, <2 x float> %73)
  %77 = insertelement <2 x float> poison, float %63, i64 0
  %78 = insertelement <2 x float> %77, float %60, i64 1
  %79 = fmul <2 x float> %76, %78
  br label %80

80:                                               ; preds = %58, %45
  %81 = phi <2 x float> [ %79, %58 ], [ zeroinitializer, %45 ]
  %82 = extractelement <2 x float> %30, i64 0
  %83 = tail call float @piControl(ptr noundef nonnull %0, float noundef %52, float noundef %82)
  %84 = extractelement <2 x float> %81, i64 1
  %85 = fadd float %84, %83
  %86 = getelementptr inbounds i8, ptr %0, i64 32
  %87 = tail call float @piControl(ptr noundef nonnull %86, float noundef %54, float noundef %32)
  %88 = extractelement <2 x float> %81, i64 0
  %89 = fadd float %88, %87
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %93, label %90

90:                                               ; preds = %80
  %91 = fmul float %13, %89
  %92 = tail call float @llvm.fmuladd.f32(float %11, float %85, float %91)
  store float %92, ptr %6, align 4, !tbaa !21
  br label %93

93:                                               ; preds = %90, %80
  %.not70 = icmp eq ptr %7, null
  br i1 %.not70, label %97, label %94

94:                                               ; preds = %93
  %95 = fmul float %11, %89
  %96 = tail call float @llvm.fmuladd.f32(float %20, float %85, float %95)
  store float %96, ptr %7, align 4, !tbaa !21
  br label %97

97:                                               ; preds = %94, %93
  %98 = getelementptr inbounds i8, ptr %0, i64 124
  %99 = load float, ptr %98, align 4, !tbaa !22
  %100 = load float, ptr %9, align 4, !tbaa !5
  %101 = tail call float @llvm.fmuladd.f32(float %48, float %99, float %100)
  store float %101, ptr %9, align 4, !tbaa !5
  %102 = fpext float %101 to double
  %103 = fcmp ult double %102, 0x401921FB54442D18
  br i1 %103, label %104, label %.sink.split

104:                                              ; preds = %97
  %105 = fcmp ugt float %101, 0.000000e+00
  br i1 %105, label %108, label %.sink.split

.sink.split:                                      ; preds = %104, %97
  %.sink = phi double [ 0xC01921FB54442D18, %97 ], [ 0x401921FB54442D18, %104 ]
  %106 = fadd double %.sink, %102
  %107 = fptrunc double %106 to float
  store float %107, ptr %9, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %.sink.split, %104
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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, !8, i64 120}
!6 = !{!"", !7, i64 0, !7, i64 32, !7, i64 64, !13, i64 96, !11, i64 116, !8, i64 120, !8, i64 124, !8, i64 128, !8, i64 132, !8, i64 136, !8, i64 140, !8, i64 144}
!7 = !{!"", !8, i64 0, !8, i64 4, !11, i64 8, !12, i64 12, !8, i64 20, !8, i64 24, !8, i64 28}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"_Bool", !9, i64 0}
!12 = !{!"", !8, i64 0, !8, i64 4}
!13 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!14 = !{!6, !8, i64 136}
!15 = !{!6, !8, i64 144}
!16 = !{!6, !11, i64 116}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !8, i64 132}
!20 = !{!6, !8, i64 128}
!21 = !{!8, !8, i64 0}
!22 = !{!6, !8, i64 124}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass