#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 degrees_radians(float);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, float);
float radians_degrees(float);
float soluc(float, float);
int main() {
  float b = 5.0;
  float c = 8.0;
  float a = soluc(b, c);
  printf("%f\n", a);
  c = 40.0;
  b = 120.0;
  a = radians_degrees(b);
  printf("%f\n", a);
  a = degrees_radians(c);
  printf("%f\n", a);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xea5(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe94(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
call   1030 <soluc@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
lea    0xe77(%rip),%rdi
call   1040 <printf@plt>
movss  0xe5e(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xe4d(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
call   1050 <radians_degrees@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
lea    0xe3d(%rip),%rdi
call   1040 <printf@plt>
movss  -0xc(%rbp),%xmm0
call   1060 <degrees_radians@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
lea    0xe1d(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
movss  0xea7(%rip),%xmm0
movss  0xea3(%rip),%xmm1
call   1030 <soluc@plt>
lea    0xea3(%rip),%rbx
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe8b(%rip),%xmm0
call   1050 <radians_degrees@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe7a(%rip),%xmm0
call   1060 <degrees_radians@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
store float 5.000000e+00, float* %2
store float 8.000000e+00, float* %3
%5 = load float, float* %2
%6 = load float, float* %3
%7 = call float @soluc(float %5, float %6)
store float %7, float* %4
%8 = load float, float* %4
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %8)
store float 4.000000e+01, float* %3
store float 1.200000e+02, float* %2
%10 = load float, float* %2
%11 = call float @radians_degrees(float %10)
store float %11, float* %4
%12 = load float, float* %4
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %12)
%14 = load float, float* %3
%15 = call float @degrees_radians(float %14)
store float %15, float* %4
%16 = load float, float* %4
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %16)
%18 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = tail call float @soluc(float 5.000000e+00, float 8.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %1)
%3 = tail call float @radians_degrees(float 1.200000e+02)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %3)
%5 = tail call float @degrees_radians(float 4.000000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %5)
%7 = tail call i32 @exit(i32 0)
unreachable
}