; LLVM IR from BrunoLevy/learn-fpga :: FemtoRV/FIRMWARE/EXAMPLES (imgui_road)

; 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.ImVec2 = type { float, float }

@FX.cz = external hidden global float, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @addQuad(<2 x float>, <2 x float>, <2 x float>, <2 x float>, i32 noundef) #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: inlinehint nounwind uwtable
declare hidden <2 x float> @vec2(float noundef, float noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @FX(<2 x float> %0, <2 x float> %1, <2 x float> %2, float noundef %3) #0 {
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca float, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %struct.ImVec2, align 4
  %26 = alloca %struct.ImVec2, align 4
  %27 = alloca %struct.ImVec2, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca %struct.ImVec2, align 4
  %34 = alloca %struct.ImVec2, align 4
  %35 = alloca %struct.ImVec2, align 4
  %36 = alloca %struct.ImVec2, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.ImVec2, align 4
  %39 = alloca %struct.ImVec2, align 4
  %40 = alloca %struct.ImVec2, align 4
  %41 = alloca %struct.ImVec2, align 4
  store <2 x float> %0, ptr %5, align 4
  store <2 x float> %1, ptr %6, align 4
  store <2 x float> %2, ptr %7, align 4
  store float %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = call <2 x float> @vec2(float noundef 1.600000e+02, float noundef 9.000000e+01)
  store <2 x float> %42, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !9
  %43 = load float, ptr @FX.cz, align 4, !tbaa !5
  %44 = fadd float %43, 5.000000e-01
  store float %44, ptr @FX.cz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 30, ptr %13, align 4, !tbaa !10
  br label %45

45:                                               ; preds = %216, %4
  %46 = load i32, ptr %13, align 4, !tbaa !10
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %219

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %50 = load float, ptr @FX.cz, align 4, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !10
  %52 = sitofp i32 %51 to float
  %53 = fadd float %50, %52
  %54 = fmul float %53, 0x3FB99999A0000000
  %55 = call float @sinf(float noundef %54) #6
  %56 = fmul float %55, 5.000000e+02
  store float %56, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %57 = load float, ptr @FX.cz, align 4, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !10
  %59 = sitofp i32 %58 to float
  %60 = fadd float %57, %59
  %61 = fmul float %60, 0x3F947AE140000000
  %62 = call float @cosf(float noundef %61) #6
  %63 = fmul float %62, 1.000000e+03
  store float %63, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !9
  %64 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !12
  %66 = fadd float %65, -1.000000e+00
  store float %66, ptr %64, align 4, !tbaa !12
  %67 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !12
  %69 = fadd float %68, -1.000000e+00
  store float %69, ptr %67, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %70 = load i32, ptr %13, align 4, !tbaa !10
  %71 = sitofp i32 %70 to float
  %72 = fdiv float 0x3F689374C0000000, %71
  store float %72, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %73 = load float, ptr %21, align 4, !tbaa !5
  %74 = fmul float 2.000000e+03, %73
  %75 = fmul float %74, 1.600000e+02
  store float %75, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %76 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !14
  %78 = fadd float %77, 1.600000e+02
  %79 = load float, ptr %16, align 4, !tbaa !5
  %80 = load float, ptr %21, align 4, !tbaa !5
  %81 = fmul float %79, %80
  %82 = call float @llvm.fmuladd.f32(float %81, float 1.600000e+02, float %78)
  store float %82, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %83 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !12
  %85 = fadd float %84, 3.000000e+01
  %86 = load float, ptr %21, align 4, !tbaa !5
  %87 = load float, ptr %15, align 4, !tbaa !5
  %88 = call float @llvm.fmuladd.f32(float %87, float 2.000000e+00, float -2.500000e+03)
  %89 = fmul float %86, %88
  %90 = fneg float %89
  %91 = call float @llvm.fmuladd.f32(float %90, float 9.000000e+01, float %85)
  store float %91, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %92 = load float, ptr %23, align 4, !tbaa !5
  %93 = load float, ptr %22, align 4, !tbaa !5
  %94 = fsub float %92, %93
  %95 = load float, ptr %24, align 4, !tbaa !5
  %96 = call <2 x float> @vec2(float noundef %94, float noundef %95)
  store <2 x float> %96, ptr %25, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %97 = load float, ptr %23, align 4, !tbaa !5
  %98 = load float, ptr %22, align 4, !tbaa !5
  %99 = fadd float %97, %98
  %100 = load float, ptr %24, align 4, !tbaa !5
  %101 = call <2 x float> @vec2(float noundef %99, float noundef %100)
  store <2 x float> %101, ptr %26, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  %102 = load float, ptr %21, align 4, !tbaa !5
  %103 = fmul float 1.750000e+03, %102
  %104 = fmul float %103, 1.600000e+02
  store float %104, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %105 = load float, ptr %23, align 4, !tbaa !5
  %106 = load float, ptr %22, align 4, !tbaa !5
  %107 = fsub float %105, %106
  %108 = load float, ptr %24, align 4, !tbaa !5
  %109 = call <2 x float> @vec2(float noundef %107, float noundef %108)
  store <2 x float> %109, ptr %27, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %110 = load float, ptr %23, align 4, !tbaa !5
  %111 = load float, ptr %22, align 4, !tbaa !5
  %112 = fadd float %110, %111
  %113 = load float, ptr %24, align 4, !tbaa !5
  %114 = call <2 x float> @vec2(float noundef %112, float noundef %113)
  store <2 x float> %114, ptr %28, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %115 = load i32, ptr %13, align 4, !tbaa !10
  %116 = icmp eq i32 %115, 30
  br i1 %116, label %117, label %118

117:                                              ; preds = %49
  store i32 4, ptr %14, align 4
  br label %213

118:                                              ; preds = %49
  %119 = load i32, ptr %13, align 4, !tbaa !10
  %120 = icmp eq i32 %119, 29
  br i1 %120, label %121, label %152

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %122 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 0
  %123 = load float, ptr %122, align 4, !tbaa !14
  store float %123, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %124 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 1
  %125 = load float, ptr %124, align 4, !tbaa !12
  %126 = fpext float %125 to double
  %127 = fsub double %126, 1.280000e+02
  %128 = fptrunc double %127 to float
  store float %128, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %129 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %130 = load float, ptr %129, align 4, !tbaa !14
  store float %130, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %131 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !12
  %133 = fpext float %132 to double
  %134 = fsub double %133, 2.000000e+00
  %135 = fptrunc double %134 to float
  store float %135, ptr %32, align 4, !tbaa !5
  %136 = load float, ptr %29, align 4, !tbaa !5
  %137 = load float, ptr %30, align 4, !tbaa !5
  %138 = call <2 x float> @vec2(float noundef %136, float noundef %137)
  store <2 x float> %138, ptr %33, align 4
  %139 = load float, ptr %31, align 4, !tbaa !5
  %140 = load float, ptr %30, align 4, !tbaa !5
  %141 = call <2 x float> @vec2(float noundef %139, float noundef %140)
  store <2 x float> %141, ptr %34, align 4
  %142 = load float, ptr %31, align 4, !tbaa !5
  %143 = load float, ptr %32, align 4, !tbaa !5
  %144 = call <2 x float> @vec2(float noundef %142, float noundef %143)
  store <2 x float> %144, ptr %35, align 4
  %145 = load float, ptr %29, align 4, !tbaa !5
  %146 = load float, ptr %32, align 4, !tbaa !5
  %147 = call <2 x float> @vec2(float noundef %145, float noundef %146)
  store <2 x float> %147, ptr %36, align 4
  %148 = load <2 x float>, ptr %33, align 4
  %149 = load <2 x float>, ptr %34, align 4
  %150 = load <2 x float>, ptr %35, align 4
  %151 = load <2 x float>, ptr %36, align 4
  call void @addQuad(<2 x float> %148, <2 x float> %149, <2 x float> %150, <2 x float> %151, i32 noundef -256)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %212

152:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %153 = load float, ptr @FX.cz, align 4, !tbaa !5
  %154 = load i32, ptr %13, align 4, !tbaa !10
  %155 = sitofp i32 %154 to float
  %156 = fadd float %153, %155
  %157 = call float @fmodf(float noundef %156, float noundef 1.000000e+01) #6
  %158 = fcmp olt float %157, 5.000000e+00
  %159 = zext i1 %158 to i32
  store i32 %159, ptr %37, align 4, !tbaa !10
  %160 = load i32, ptr %37, align 4, !tbaa !10
  %161 = icmp ne i32 %160, 0
  %162 = zext i1 %161 to i64
  %163 = select i1 %161, i32 -1, i32 -16776961
  %164 = load <2 x float>, ptr %17, align 4
  %165 = load <2 x float>, ptr %19, align 4
  %166 = load <2 x float>, ptr %12, align 4
  %167 = load <2 x float>, ptr %9, align 4
  call void @addQuad(<2 x float> %164, <2 x float> %165, <2 x float> %166, <2 x float> %167, i32 noundef %163)
  %168 = load i32, ptr %37, align 4, !tbaa !10
  %169 = icmp ne i32 %168, 0
  %170 = zext i1 %169 to i64
  %171 = select i1 %169, i32 -1, i32 -16776961
  %172 = load <2 x float>, ptr %20, align 4
  %173 = load <2 x float>, ptr %18, align 4
  %174 = load <2 x float>, ptr %10, align 4
  %175 = load <2 x float>, ptr %11, align 4
  call void @addQuad(<2 x float> %172, <2 x float> %173, <2 x float> %174, <2 x float> %175, i32 noundef %171)
  %176 = load i32, ptr %37, align 4, !tbaa !10
  %177 = icmp ne i32 %176, 0
  %178 = zext i1 %177 to i64
  %179 = select i1 %177, i32 -13684945, i32 -12632257
  %180 = load <2 x float>, ptr %19, align 4
  %181 = load <2 x float>, ptr %20, align 4
  %182 = load <2 x float>, ptr %11, align 4
  %183 = load <2 x float>, ptr %12, align 4
  call void @addQuad(<2 x float> %180, <2 x float> %181, <2 x float> %182, <2 x float> %183, i32 noundef %179)
  %184 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !14
  %186 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !12
  %188 = call <2 x float> @vec2(float noundef %185, float noundef %187)
  store <2 x float> %188, ptr %38, align 4
  %189 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !14
  %191 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %192 = load float, ptr %191, align 4, !tbaa !12
  %193 = call <2 x float> @vec2(float noundef %190, float noundef %192)
  store <2 x float> %193, ptr %39, align 4
  %194 = load <2 x float>, ptr %38, align 4
  %195 = load <2 x float>, ptr %17, align 4
  %196 = load <2 x float>, ptr %9, align 4
  %197 = load <2 x float>, ptr %39, align 4
  call void @addQuad(<2 x float> %194, <2 x float> %195, <2 x float> %196, <2 x float> %197, i32 noundef -16744704)
  %198 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %199 = load float, ptr %198, align 4, !tbaa !14
  %200 = getelementptr inbounds %struct.ImVec2, ptr %18, i32 0, i32 1
  %201 = load float, ptr %200, align 4, !tbaa !12
  %202 = call <2 x float> @vec2(float noundef %199, float noundef %201)
  store <2 x float> %202, ptr %40, align 4
  %203 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %204 = load float, ptr %203, align 4, !tbaa !14
  %205 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %206 = load float, ptr %205, align 4, !tbaa !12
  %207 = call <2 x float> @vec2(float noundef %204, float noundef %206)
  store <2 x float> %207, ptr %41, align 4
  %208 = load <2 x float>, ptr %18, align 4
  %209 = load <2 x float>, ptr %40, align 4
  %210 = load <2 x float>, ptr %41, align 4
  %211 = load <2 x float>, ptr %10, align 4
  call void @addQuad(<2 x float> %208, <2 x float> %209, <2 x float> %210, <2 x float> %211, i32 noundef -16744704)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %212

212:                                              ; preds = %152, %121
  store i32 0, ptr %14, align 4
  br label %213

213:                                              ; preds = %212, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %214 = load i32, ptr %14, align 4
  switch i32 %214, label %220 [
    i32 0, label %215
    i32 4, label %216
  ]

215:                                              ; preds = %213
  br label %216

216:                                              ; preds = %215, %213
  %217 = load i32, ptr %13, align 4, !tbaa !10
  %218 = add nsw i32 %217, -1
  store i32 %218, ptr %13, align 4, !tbaa !10
  br label %45, !llvm.loop !15

219:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

220:                                              ; preds = %213
  unreachable
}

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

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

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

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

; Function Attrs: nounwind
declare float @fmodf(float noundef, float noundef) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 4}
!13 = !{!"", !6, i64 0, !6, i64 4}
!14 = !{!13, !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

@FX.cz = external hidden local_unnamed_addr global float, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @addQuad(<2 x float>, <2 x float>, <2 x float>, <2 x float>, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @vec2(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @FX(<2 x float> %0, <2 x float> %1, <2 x float> %2, float noundef %3) local_unnamed_addr #0 {
  %5 = tail call <2 x float> @vec2(float noundef 1.600000e+02, float noundef 9.000000e+01)
  %6 = load float, ptr @FX.cz, align 4, !tbaa !5
  %7 = fadd float %6, 5.000000e-01
  store float %7, ptr @FX.cz, align 4, !tbaa !5
  %.sroa.080.0.vec.extract = extractelement <2 x float> %0, i64 0
  %8 = fadd float %.sroa.080.0.vec.extract, 1.600000e+02
  %.sroa.080.4.vec.extract = extractelement <2 x float> %0, i64 1
  %9 = fadd float %.sroa.080.4.vec.extract, 3.000000e+01
  %10 = fadd float %.sroa.080.4.vec.extract, -1.280000e+02
  %.sroa.075.0.vec.extract = extractelement <2 x float> %1, i64 0
  br label %12

11:                                               ; preds = %62
  ret void

12:                                               ; preds = %4, %62
  %.sroa.068.093 = phi <2 x float> [ %5, %4 ], [ %35, %62 ]
  %.sroa.065.092 = phi <2 x float> [ %5, %4 ], [ %37, %62 ]
  %.sroa.062.091 = phi <2 x float> [ %5, %4 ], [ %43, %62 ]
  %.sroa.059.090 = phi <2 x float> [ %5, %4 ], [ %41, %62 ]
  %.089 = phi i32 [ 30, %4 ], [ %63, %62 ]
  %13 = load float, ptr @FX.cz, align 4, !tbaa !5
  %14 = uitofp nneg i32 %.089 to float
  %15 = fadd float %13, %14
  %16 = fmul float %15, 0x3FB99999A0000000
  %17 = tail call float @sinf(float noundef %16) #4
  %18 = fmul float %17, 5.000000e+02
  %19 = load float, ptr @FX.cz, align 4, !tbaa !5
  %20 = fadd float %19, %14
  %21 = fmul float %20, 0x3F947AE140000000
  %22 = tail call float @cosf(float noundef %21) #4
  %23 = fmul float %22, 1.000000e+03
  %.sroa.040.4.vec.extract = extractelement <2 x float> %.sroa.059.090, i64 1
  %24 = fadd float %.sroa.040.4.vec.extract, -1.000000e+00
  %25 = fdiv float 0x3F689374C0000000, %14
  %26 = fmul float %25, 2.000000e+03
  %27 = fmul float %26, 1.600000e+02
  %28 = fmul float %25, %23
  %29 = tail call float @llvm.fmuladd.f32(float %28, float 1.600000e+02, float %8)
  %30 = tail call float @llvm.fmuladd.f32(float %18, float 2.000000e+00, float -2.500000e+03)
  %31 = fneg float %25
  %32 = fmul float %30, %31
  %33 = tail call float @llvm.fmuladd.f32(float %32, float 9.000000e+01, float %9)
  %34 = fsub float %29, %27
  %35 = tail call <2 x float> @vec2(float noundef %34, float noundef %33)
  %36 = fadd float %27, %29
  %37 = tail call <2 x float> @vec2(float noundef %36, float noundef %33)
  %38 = fmul float %25, 1.750000e+03
  %39 = fmul float %38, 1.600000e+02
  %40 = fsub float %29, %39
  %41 = tail call <2 x float> @vec2(float noundef %40, float noundef %33)
  %42 = fadd float %39, %29
  %43 = tail call <2 x float> @vec2(float noundef %42, float noundef %33)
  switch i32 %.089, label %50 [
    i32 30, label %62
    i32 29, label %44
  ]

44:                                               ; preds = %12
  %45 = fadd float %24, -2.000000e+00
  %46 = tail call <2 x float> @vec2(float noundef %.sroa.080.0.vec.extract, float noundef %10)
  %47 = tail call <2 x float> @vec2(float noundef %.sroa.075.0.vec.extract, float noundef %10)
  %48 = tail call <2 x float> @vec2(float noundef %.sroa.075.0.vec.extract, float noundef %45)
  %49 = tail call <2 x float> @vec2(float noundef %.sroa.080.0.vec.extract, float noundef %45)
  tail call void @addQuad(<2 x float> %46, <2 x float> %47, <2 x float> %48, <2 x float> %49, i32 noundef -256)
  br label %62

50:                                               ; preds = %12
  %.sroa.037.4.vec.extract = extractelement <2 x float> %.sroa.062.091, i64 1
  %51 = fadd float %.sroa.037.4.vec.extract, -1.000000e+00
  %.sroa.037.4.vec.insert = insertelement <2 x float> %.sroa.062.091, float %51, i64 1
  %.sroa.040.4.vec.insert = insertelement <2 x float> %.sroa.059.090, float %24, i64 1
  %52 = load float, ptr @FX.cz, align 4, !tbaa !5
  %53 = fadd float %52, %14
  %54 = tail call float @fmodf(float noundef %53, float noundef 1.000000e+01) #4
  %55 = fcmp olt float %54, 5.000000e+00
  %56 = select i1 %55, i32 -1, i32 -16776961
  tail call void @addQuad(<2 x float> %.sroa.068.093, <2 x float> %.sroa.040.4.vec.insert, <2 x float> %41, <2 x float> %35, i32 noundef %56)
  tail call void @addQuad(<2 x float> %.sroa.037.4.vec.insert, <2 x float> %.sroa.065.092, <2 x float> %37, <2 x float> %43, i32 noundef %56)
  %57 = select i1 %55, i32 -13684945, i32 -12632257
  tail call void @addQuad(<2 x float> %.sroa.040.4.vec.insert, <2 x float> %.sroa.037.4.vec.insert, <2 x float> %43, <2 x float> %41, i32 noundef %57)
  %.sroa.047.4.vec.extract = extractelement <2 x float> %.sroa.068.093, i64 1
  %58 = tail call <2 x float> @vec2(float noundef %.sroa.080.0.vec.extract, float noundef %.sroa.047.4.vec.extract)
  %.sroa.068.4.vec.extract = extractelement <2 x float> %35, i64 1
  %59 = tail call <2 x float> @vec2(float noundef %.sroa.080.0.vec.extract, float noundef %.sroa.068.4.vec.extract)
  tail call void @addQuad(<2 x float> %58, <2 x float> %.sroa.068.093, <2 x float> %35, <2 x float> %59, i32 noundef -16744704)
  %.sroa.045.4.vec.extract = extractelement <2 x float> %.sroa.065.092, i64 1
  %60 = tail call <2 x float> @vec2(float noundef %.sroa.075.0.vec.extract, float noundef %.sroa.045.4.vec.extract)
  %.sroa.065.4.vec.extract = extractelement <2 x float> %37, i64 1
  %61 = tail call <2 x float> @vec2(float noundef %.sroa.075.0.vec.extract, float noundef %.sroa.065.4.vec.extract)
  tail call void @addQuad(<2 x float> %.sroa.065.092, <2 x float> %60, <2 x float> %61, <2 x float> %37, i32 noundef -16744704)
  br label %62

62:                                               ; preds = %44, %50, %12
  %63 = add nsw i32 %.089, -1
  %64 = icmp ugt i32 %.089, 1
  br i1 %64, label %12, label %11, !llvm.loop !9
}

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 = { mustprogress 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass