#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 */
double ceil(double);
double cos(double);
double exp(double);
double fabs(double);
double floor(double);
double fmod(double, double);
double log(double);
double log10(double);
double pow(int, double);
int /*<<< orphan*/ printf(char *, double);
double sin(double);
double sqrt(double);
double tan(double);
int main() {
  printf("sqrt(900.0) = %.1f\n", sqrt(900.0));
  printf("sqrt(9.0) = %.1f\n", sqrt(9.0));
  printf("exp(1.0) = %f\n", exp(1.0));
  printf("exp(2.0) = %f\n", exp(2.0));
  printf("log(2.718282) = %.1f\n", log(2.718282));
  printf("log(7.389056) = %.1f\n", log(7.389056));
  printf("log10(1.0) = %.1f\n", log10(1.0));
  printf("log10(10.0) = %.1f\n", log10(10.0));
  printf("log10(100.0) = %.1f\n", log10(100.0));
  printf("fabs(5.0) = %.1f\n", fabs(5.0));
  printf("fabs(0.0) = %.1f\n", fabs(0.0));
  printf("fabs(-5.0) = %.1f\n", fabs(-5.0));
  printf("ceil(9.2) = %.1f\n", ceil(9.2));
  printf("ceil(-9.8) = %.1f\n", ceil(-9.8));
  printf("floor(9.2) = %.1f\n", floor(9.2));
  printf("floor(-9.8) = %.1f\n", floor(-9.8));
  printf("pow(2,7) = %.1f\n", pow(2, 7));
  printf("pow(9,.5) = %.1f\n", pow(9, .5));
  printf("fmod(13.657, 2.333) = %.3f\n", fmod(13.657, 2.333));
  printf("sin(0.0) = %.1f\n", sin(0.0));
  printf("cos(0.0) = %.1f\n", cos(0.0));
  printf("tan(0.0) = %.1f\n", tan(0.0));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xeb9(%rip),%xmm0
call   10c0 <sqrt@plt>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe58(%rip),%xmm0
call   10c0 <sqrt@plt>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe67(%rip),%xmm0
call   1060 <exp@plt>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe66(%rip),%xmm0
call   1060 <exp@plt>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe45(%rip),%xmm0
call   1090 <log@plt>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe24(%rip),%xmm0
call   1090 <log@plt>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe03(%rip),%xmm0
call   10b0 <log10@plt>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdd2(%rip),%xmm0
call   10b0 <log10@plt>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdc9(%rip),%xmm0
call   10b0 <log10@plt>
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
movsd  0xda8(%rip),%xmm0
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd85(%rip),%xmm0
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd69(%rip),%xmm0
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd4d(%rip),%xmm0
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd31(%rip),%xmm0
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd15(%rip),%xmm0
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
movsd  0xcf4(%rip),%xmm0
call   10a0 <pow@plt>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    $0x9,%edi
movsd  0xcce(%rip),%xmm0
call   10a0 <pow@plt>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
movsd  0xca5(%rip),%xmm0
movsd  0xca5(%rip),%xmm1
call   1040 <fmod@plt>
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
call   1050 <sin@plt>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
call   1080 <cos@plt>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
call   1070 <tan@plt>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf58(%rip),%rdi
movsd  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
movsd  0xec4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
movsd  0xeb8(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
movsd  0xeac(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
movsd  0xea0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
movsd  0xe94(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
movsd  0xe79(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
movsd  0xe6d(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
movsd  0xe61(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
movsd  0xe3e(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
movsd  0xe32(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
movsd  0xe26(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
movsd  0xe1a(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
movsd  0xe0e(%rip),%xmm0
call   1030 <printf@plt>
movsd  0xe09(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdf3(%rip),%xmm0
mov    $0x9,%edi
call   1040 <pow@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
movsd  0xdd6(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
movsd  0xd6b(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"sqrt(900.0) = %.1f\0A\00"
@.str.1 = [18 x i8] c"sqrt(9.0) = %.1f\0A\00"
@.str.2 = [15 x i8] c"exp(1.0) = %f\0A\00"
@.str.3 = [15 x i8] c"exp(2.0) = %f\0A\00"
@.str.4 = [22 x i8] c"log(2.718282) = %.1f\0A\00"
@.str.5 = [22 x i8] c"log(7.389056) = %.1f\0A\00"
@.str.6 = [19 x i8] c"log10(1.0) = %.1f\0A\00"
@.str.7 = [20 x i8] c"log10(10.0) = %.1f\0A\00"
@.str.8 = [21 x i8] c"log10(100.0) = %.1f\0A\00"
@.str.9 = [18 x i8] c"fabs(5.0) = %.1f\0A\00"
@.str.10 = [18 x i8] c"fabs(0.0) = %.1f\0A\00"
@.str.11 = [19 x i8] c"fabs(-5.0) = %.1f\0A\00"
@.str.12 = [18 x i8] c"ceil(9.2) = %.1f\0A\00"
@.str.13 = [19 x i8] c"ceil(-9.8) = %.1f\0A\00"
@.str.14 = [19 x i8] c"floor(9.2) = %.1f\0A\00"
@.str.15 = [20 x i8] c"floor(-9.8) = %.1f\0A\00"
@.str.16 = [17 x i8] c"pow(2,7) = %.1f\0A\00"
@.str.17 = [18 x i8] c"pow(9,.5) = %.1f\0A\00"
@.str.18 = [28 x i8] c"fmod(13.657, 2.333) = %.3f\0A\00"
@.str.19 = [17 x i8] c"sin(0.0) = %.1f\0A\00"
@.str.20 = [17 x i8] c"cos(0.0) = %.1f\0A\00"
@.str.21 = [17 x i8] c"tan(0.0) = %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call double @sqrt(double 9.000000e+02)
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), double %2)
%4 = call double @sqrt(double 9.000000e+00)
%5 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %4)
%6 = call double @exp(double 1.000000e+00)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double %6)
%8 = call double @exp(double 2.000000e+00)
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), double %8)
%10 = call double @log(double 0x4005BF0AA21A719B)
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %10)
%12 = call double @log(double 0x401D8E64B2314014)
%13 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %12)
%14 = call double @log10(double 1.000000e+00)
%15 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), double %14)
%16 = call double @log10(double 1.000000e+01)
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), double %16)
%18 = call double @log10(double 1.000000e+02)
%19 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), double %18)
%20 = call double @llvm.fabs.f64(double 5.000000e+00)
%21 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), double %20)
%22 = call double @llvm.fabs.f64(double 0.000000e+00)
%23 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), double %22)
%24 = call double @llvm.fabs.f64(double -5.000000e+00)
%25 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double %24)
%26 = call double @llvm.ceil.f64(double 0x4022666666666666)
%27 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), double %26)
%28 = call double @llvm.ceil.f64(double -9.800000e+00)
%29 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %28)
%30 = call double @llvm.floor.f64(double 0x4022666666666666)
%31 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), double %30)
%32 = call double @llvm.floor.f64(double -9.800000e+00)
%33 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), double %32)
%34 = call double @pow(i32 2, double 7.000000e+00)
%35 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), double %34)
%36 = call double @pow(i32 9, double 5.000000e-01)
%37 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), double %36)
%38 = call double @fmod(double 1.365700e+01, double 2.333000e+00)
%39 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %38)
%40 = call double @sin(double 0.000000e+00)
%41 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), double %40)
%42 = call double @cos(double 0.000000e+00)
%43 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0), double %42)
%44 = call double @tan(double 0.000000e+00)
%45 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), double %44)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"sqrt(900.0) = %.1f\0A\00"
@.str.1 = [18 x i8] c"sqrt(9.0) = %.1f\0A\00"
@.str.2 = [15 x i8] c"exp(1.0) = %f\0A\00"
@.str.3 = [15 x i8] c"exp(2.0) = %f\0A\00"
@.str.4 = [22 x i8] c"log(2.718282) = %.1f\0A\00"
@.str.5 = [22 x i8] c"log(7.389056) = %.1f\0A\00"
@.str.6 = [19 x i8] c"log10(1.0) = %.1f\0A\00"
@.str.7 = [20 x i8] c"log10(10.0) = %.1f\0A\00"
@.str.8 = [21 x i8] c"log10(100.0) = %.1f\0A\00"
@.str.9 = [18 x i8] c"fabs(5.0) = %.1f\0A\00"
@.str.10 = [18 x i8] c"fabs(0.0) = %.1f\0A\00"
@.str.11 = [19 x i8] c"fabs(-5.0) = %.1f\0A\00"
@.str.12 = [18 x i8] c"ceil(9.2) = %.1f\0A\00"
@.str.13 = [19 x i8] c"ceil(-9.8) = %.1f\0A\00"
@.str.14 = [19 x i8] c"floor(9.2) = %.1f\0A\00"
@.str.15 = [20 x i8] c"floor(-9.8) = %.1f\0A\00"
@.str.16 = [17 x i8] c"pow(2,7) = %.1f\0A\00"
@.str.17 = [18 x i8] c"pow(9,.5) = %.1f\0A\00"
@.str.18 = [28 x i8] c"fmod(13.657, 2.333) = %.3f\0A\00"
@.str.19 = [17 x i8] c"sin(0.0) = %.1f\0A\00"
@.str.20 = [17 x i8] c"cos(0.0) = %.1f\0A\00"
@.str.21 = [17 x i8] c"tan(0.0) = %.1f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), double 3.000000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double 3.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double 0x4005BF0A8B145769)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), double 0x401D8E64B8D4DDAE)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double 0x3FF0000010F0A354)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double 0x3FFFFFFFFC67ED9B)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), double 0.000000e+00)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+00)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), double 2.000000e+00)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), double 5.000000e+00)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), double 0.000000e+00)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), double 5.000000e+00)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), double 1.000000e+01)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double -9.000000e+00)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), double 9.000000e+00)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), double -1.000000e+01)
%17 = tail call double @pow(i32 2, double 7.000000e+00)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), double %17)
%19 = tail call double @pow(i32 9, double 5.000000e-01)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), double %19)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double 0x3FFFDF3B645A1CA8)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), double 0.000000e+00)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0), double 1.000000e+00)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), double 0.000000e+00)
ret i32 0
}