#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float fpmathfunc(float, int, float, float, float, int, float, float);
int /*<<< orphan*/ printf(char *, float);
int main() {
  float value1 = 43.65;
  int value2 = 22;
  float value3 = 76.34;
  float value4 = 3.1;
  float value5 = 12.43;
  int value6 = 6;
  float value7 = 140.2;
  float value8 = 94.21;
  float result;
  result = fpmathfunc(value1, value2, value3, value4, value5, value6, value7,
                      value8);
  printf("The final result is %f\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xedd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0x16,-0xc(%rbp)
movss  0xec5(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xeb4(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xea3(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x6,-0x1c(%rbp)
movss  0xe8b(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe7a(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x8(%rbp),%xmm0
mov    -0xc(%rbp),%edi
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
mov    -0x1c(%rbp),%esi
movss  -0x20(%rbp),%xmm4
movss  -0x24(%rbp),%xmm5
call   1040 <fpmathfunc@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movss  0xed7(%rip),%xmm0
movss  0xed3(%rip),%xmm1
movss  0xecf(%rip),%xmm2
movss  0xecb(%rip),%xmm3
movss  0xec7(%rip),%xmm4
movss  0xec3(%rip),%xmm5
mov    $0x16,%edi
mov    $0x6,%esi
call   1040 <fpmathfunc@plt>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"The final result is %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca float
store i32 0, i32* %1
store float 0x4045D33340000000, float* %2
store i32 22, i32* %3
store float 0x405315C280000000, float* %4
store float 0x4008CCCCC0000000, float* %5
store float 0x4028DC2900000000, float* %6
store i32 6, i32* %7
store float 0x4061866660000000, float* %8
store float 0x40578D70A0000000, float* %9
%11 = load float, float* %2
%12 = load i32, i32* %3
%13 = load float, float* %4
%14 = load float, float* %5
%15 = load float, float* %6
%16 = load i32, i32* %7
%17 = load float, float* %8
%18 = load float, float* %9
%19 = call float @fpmathfunc(float %11, i32 %12, float %13, float %14, float %15, i32 %16, float %17, float %18)
store float %19, float* %10
%20 = load float, float* %10
%21 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), float %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"The final result is %f\0A\00"
define i32 @main() {
%1 = tail call float @fpmathfunc(float 0x4045D33340000000, i32 22, float 0x405315C280000000, float 0x4008CCCCC0000000, float 0x4028DC2900000000, i32 6, float 0x4061866660000000, float 0x40578D70A0000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), float %1)
ret i32 0
}